flat assembler
Message board for the users of flat assembler.

Index > OS Construction > 4MB paging help

Author
Thread Post new topic Reply to topic
CandyMan



Joined: 04 Sep 2009
Posts: 317
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan
Whether somebody could help me to write first 4GB memory paging one to one (4MB of the page)?
Post 24 Aug 2011, 19:09
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
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).
Post 25 Aug 2011, 05:59
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
CandyMan



Joined: 04 Sep 2009
Posts: 317
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan
What is wrong?


Last edited by CandyMan on 28 Aug 2011, 11:48; edited 1 time in total
Post 25 Aug 2011, 15:13
View user's profile Send private message Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2140
Location: Estonia
Madis731
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)?
Post 25 Aug 2011, 17:50
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
CandyMan



Joined: 04 Sep 2009
Posts: 317
Location: film "CandyMan" directed through Bernard Rose OR Candy Shop
CandyMan
Thanks all, problem solved!
Post 25 Aug 2011, 18:04
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.

Website powered by rwasa.