Keyboard: Problem with the (re)programmed Interrupt handler

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.
Rob

Re:Keyboard: Problem with the (re)programmed Interrupt handl

Post by Rob »

That is a "standard" method to detect if something is zero or not. Remember that the processor sets flags on instructions like test.

So, test eax, eax will set the zero flag if eax is zero and otherwise it won't.

test eax, eax
jz NullPointer

That jz will be taken if eax = 0, otherwise the jump will not be taken
Post Reply