Page 1 of 1
unreal mode code
Posted: Fri Aug 23, 2002 2:53 am
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...
Re:unreal mode code
Posted: Fri Aug 23, 2002 3:11 am
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 ...
Re:unreal mode code
Posted: Fri Aug 23, 2002 3:25 am
by df
no, since that would mean you would be in protected mode and not unreal mode.
Re:unreal mode code
Posted: Fri Aug 23, 2002 9:44 am
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.
Re:unreal mode code
Posted: Fri Aug 23, 2002 1:07 pm
by drizzt
Thanx...