Page 1 of 1

a20 enabled?

Posted: Sat Dec 09, 2006 5:08 am
by Lprogster
Thanks,
Lprogster

Posted: Sat Dec 09, 2006 5:22 am
by Ready4Dis
Dont' assume it's already set, some never bioses have an option to enable the a20 by default, but never assume that this will be set, always check it and set it appropriately, there are plenty of tutorials on how to do this.

Posted: Sat Dec 09, 2006 6:45 am
by Lprogster
Thankyou Ready4Dis.

...

Thanks,
Lprogster

Posted: Sat Dec 09, 2006 6:48 am
by Walling
You might want to read this: http://osdever.net/tutorials/pdf/a20.pdf

Posted: Sat Dec 09, 2006 7:09 am
by Lprogster
Thankyou for that Walling.

...

Thanks,
Lprogster

Posted: Sat Dec 09, 2006 7:18 am
by Walling
Lprogster wrote:In 16bit (real) mode can you use EAX?
No, not in real mode. In 16 bit protected mode you can. But just replace it with AX. It should work.

I hope you figure it out :-)

Posted: Sat Dec 09, 2006 7:23 am
by Lprogster
I think Ive got t working... Thankyou everyone!

Thanks,
Lprogster

Posted: Sat Dec 09, 2006 5:34 pm
by Combuster
Walling wrote:
Lprogster wrote:In 16bit (real) mode can you use EAX?
No, not in real mode. In 16 bit protected mode you can. But just replace it with AX. It should work.
Yes, in real mode you can use 32-bit instructions. The assembler will simply add prefixes to tell the processor that the next instruction uses 32-bit operands instead of the standard 16 bit ones.
Some bios functions return values in EAX and other 32-bit registers, and Unreal mode wouldnt exist if you couldnt use 32-bit addresses in real mode.

Posted: Sat Dec 09, 2006 7:16 pm
by Walling
Combuster wrote:
Walling wrote:
Lprogster wrote:In 16bit (real) mode can you use EAX?
No, not in real mode. In 16 bit protected mode you can. But just replace it with AX. It should work.
Yes, in real mode you can use 32-bit instructions. The assembler will simply add prefixes to tell the processor that the next instruction uses 32-bit operands instead of the standard 16 bit ones.
Some bios functions return values in EAX and other 32-bit registers, and Unreal mode wouldnt exist if you couldnt use 32-bit addresses in real mode.
Okay, my fault, I thought it was only for 16 bit protected mode. Very nice indeed.