Hi, 2013/4/16 sebas sujeen <sujeen.veg...@gmail.com> > > testl $0, lguest_data+LGUEST_DATA_irq_pending > jnz send_interrupts > > doesn't testl perform a bitwise and of the operands and set the flags > appropriately. In that case, test with '0' as operand would always set the > zero flag right? >
No. The zero flag is set if the whole result is zero. You should imagine "testl" like a subtraction operator which doesn't write the result in a register, but changes the state of some flags in the status register. So you can see, regarding the overflow and zero flags, if the values you tested against each other, were bigger/smaller/equal. > So it can never jump to send_interrupts. > This line has been working properly for some years, now. :-) Best regards, Jacek Galowicz
_______________________________________________ Lguest mailing list Lguest@lists.ozlabs.org https://lists.ozlabs.org/listinfo/lguest