Page 1 of 1

eflags

Posted: Sun Nov 24, 2002 8:19 am
by Tom
Hello,

I just added a register-dumping function to the FritzOS C++ kernel...

It also prints the value of EFLAGS.

Now, the hex value of EFLAGS is 0x6.
Why is EFLAGS 0x6? I'm in full PMode without ints enabled, just a GDT.

Thankyou,

Re:eflags

Posted: Sun Nov 24, 2002 8:53 am
by richie
lo!
If you want informations about eflags look at http://www.sandpile.org/ia32/eflags.htm . There you can find out that 0x04 is the PF-Bit (Parity Flag). 0x02 should be always set. If the interrupts are disabled, 0x0100 should be cleared (The 9th bit).

Re:eflags

Posted: Sun Nov 24, 2002 2:51 pm
by Tom
So, why is it the ZF flag...or I didn't understand that list?

Re:eflags

Posted: Sun Nov 24, 2002 5:27 pm
by grey wolf
OF = Overflow Flag
DF = Direction Flag
ZF = Zero Flag (set when a test returns zero)
CF = Carry Flag
etc.

these are all listed and described in the Intel manuals.