unreal mode code

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
drizzt

unreal mode code

Post by drizzt »

I know that it is possible to enter in unreal mode to set the segment register ds, es to use 4GB offset. But is it possible to do that also for cs?! So should be possible to execute code also in extended mem, without the limit of the 640KB conventional memory of real mode...
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:unreal mode code

Post by Pype.Clicker »

this seems hard to achieve as a large (32bits) code segment also means a different decoding of opcodes (inverted db 66 and db 67)

but i never tried it, so maybe it could work anyway ...
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re:unreal mode code

Post by df »

no, since that would mean you would be in protected mode and not unreal mode.
-- Stu --
crazybuddha

Re:unreal mode code

Post by crazybuddha »

drizzt wrote: I know that it is possible to enter in unreal mode to set the segment register ds, es to use 4GB offset. But is it possible to do that also for cs?! So should be possible to execute code also in extended mem, without the limit of the 640KB conventional memory of real mode...
All unreal mode does is fool the processor in real mode into thinking the limit of an offset isn't 0xFFFF. Nothing more. This lets you address memory at seg:off using 32-bit registers. The value of the segment register is still same as ever. And IP is still limited to 0xFFFF.
drizzt

Re:unreal mode code

Post by drizzt »

Thanx...
Post Reply