<div dir="ltr">Hi,<br><div class="gmail_extra"><br><div class="gmail_quote">2013/4/16 sebas sujeen <span dir="ltr"><<a href="mailto:sujeen.vegeta@gmail.com" target="_blank">sujeen.vegeta@gmail.com</a>></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div> testl $0, lguest_data+LGUEST_DATA_irq_pending</div>
<div> jnz send_interrupts</div><div><br></div><div>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?</div>
</div></div></blockquote><div><br></div><div style>No. The zero flag is set if the whole result is zero.</div><div style>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.</div>
<div style>So you can see, regarding the overflow and zero flags, if the values you tested against each other, were bigger/smaller/equal.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div> So it can never jump to send_interrupts. </div></div></div></blockquote><div><br></div><div style>This line has been working properly for some years, now. :-)</div><div> </div><div style>Best regards,</div>
<div style>   Jacek Galowicz</div></div>
</div></div>