check if in real mode or PM
- packet50071
- Member
- Posts: 43
- Joined: Sat Dec 22, 2007 2:27 pm
- Location: canada
check if in real mode or PM
Is there A way check ??
Technology is here to make things easier not harder.
Combuster has already answered your question. However, other ways could be for example to use an instruction that is only valid in the protected mode. I haven't tried this method but it should work.
On the field with sword and shield amidst the din of dying of men's wails. War is waged and the battle will rage until only the righteous prevails.
- packet50071
- Member
- Posts: 43
- Joined: Sat Dec 22, 2007 2:27 pm
- Location: canada
thx - My first question was does GRUB give control to me after going in to PM or not ! -- so i needed to figure out my self but i couldn't -- so i am here
Sorry for my ignorance but i cannot find a manual in intel's site for Pentium 4 processor -- it only shows software devloper's manual for
Intel® 64 and IA-32 Architectures Software Developer's Manuals :'(
http://www.intel.com/design/Pentium4/documentation.htm
Sorry for my ignorance but i cannot find a manual in intel's site for Pentium 4 processor -- it only shows software devloper's manual for
Intel® 64 and IA-32 Architectures Software Developer's Manuals :'(
http://www.intel.com/design/Pentium4/documentation.htm
Technology is here to make things easier not harder.
... ?lukem_95 wrote:pentium 4 is still very new (as processors go) and therefore it wouldnt be very backward compatable... also most emulators use older models.
Pentium 4's use the same IA-32 architecture as every other intel 32-bit chip. They are all compatible with each other.
The cake is a lie | rackbits.com
Look up what the instruction SMSW does:
http://faydoc.tripod.com/cpu/smsw.htm
You can load ax and test bit 1
http://faydoc.tripod.com/cpu/smsw.htm
You can load ax and test bit 1
- packet50071
- Member
- Posts: 43
- Joined: Sat Dec 22, 2007 2:27 pm
- Location: canada
this was my code
and it did print - so it means that its in PM right !
Code: Select all
SMSW AX
test AX ,1
jnz _printsomething
Technology is here to make things easier not harder.
Which i pointed out in my post, but i have been told off for just dumping code, so i use perdo code.packet50071 wrote:this was my code
and it did print - so it means that its in PM right !Code: Select all
SMSW AX test AX ,1 jnz _printsomething
- packet50071
- Member
- Posts: 43
- Joined: Sat Dec 22, 2007 2:27 pm
- Location: canada