eflags

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
Tom

eflags

Post 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,
richie

Re:eflags

Post 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).
Tom

Re:eflags

Post by Tom »

So, why is it the ZF flag...or I didn't understand that list?
grey wolf

Re:eflags

Post 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.
Post Reply