flat assembler
Message board for the users of flat assembler.

Index > OS Construction > Real Mode Paging

Author
Thread Post new topic Reply to topic
Mota



Joined: 29 Dec 2004
Posts: 22
Mota 06 May 2006, 21:44
Simple question:

Is it possible to enable paging within real mode, without ever enabling protected mode?

If so, how exactly would it work? Razz
Thanks in advance.
Post 06 May 2006, 21:44
View user's profile Send private message Reply with quote
xorboy



Joined: 29 May 2006
Posts: 1
Location: sweden
xorboy 29 May 2006, 10:27
There is probably only way to do that:
Virtual real mode

Goto pmode, enable paging, set up the virtual realmode things, and then jump to it (through a special gate i think?) and you are done. The next question is why you would like to do that Razz You can at a maximum just access 1MByte RAM anyways Razz

Perhaps unreal mode is more interesting for what you had in mind. (goto pmode, set up a global descriptor table, set the segment registers accordingly, return back to realmode without ever changing the segregisters and suddenly you've got yourself a flat address-space in realmode, aka flat realmode, unreal mode. i think there is a piece of code that does this in the exaple's collection at fasm.)

You can find the specs on how to do that in intels 80386-manual. use google Razz
Post 29 May 2006, 10:27
View user's profile Send private message MSN Messenger ICQ Number 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-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.