flat assembler
Message board for the users of flat assembler.
  
|  Index
      > OS Construction > 4MB paging help | 
| Author | 
 | 
| CandyMan 24 Aug 2011, 19:09 Whether somebody could help me to write first 4GB memory paging one to one (4MB of the page)? | |||
|  24 Aug 2011, 19:09 | 
 | 
| Madis731 25 Aug 2011, 05:59 http://board.flatassembler.net/topic.php?p=118339#118339
 If you check out the Stage2\Paging.inc you can see that it sets up 4MB pages @70000. There's also some old 4KB code commented out if you're interested. Nothing more to it than looping through all the 4GB and setting up 4MB pages (totaling 1024 pages). | |||
|  25 Aug 2011, 05:59 | 
 | 
| CandyMan 25 Aug 2011, 15:13 What is wrong? Last edited by CandyMan on 28 Aug 2011, 11:48; edited 1 time in total | |||
|  25 Aug 2011, 15:13 | 
 | 
| Madis731 25 Aug 2011, 17:50 Because its a 16-bit executable I can't run it on my 64-bit machine.
 You can play with paging in your *own* operating system. You cannot just write an executable and mess with protected features of a current OS. That is not possible. Maybe you are trying to write a new Windows 3.1 on top of DOS? http://en.wikipedia.org/wiki/Windows_3.1x It was 16-bit and as far as I know, used the same CPU features/properties as DOS (although I'm not sure)? | |||
|  25 Aug 2011, 17:50 | 
 | 
| CandyMan 25 Aug 2011, 18:04 Thanks all, problem solved! | |||
|  25 Aug 2011, 18:04 | 
 | 
| < Last Thread | Next Thread > | 
| Forum Rules: 
 | 
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.