Aby sprawdzić czy dany rejestr np. EAX jest równy zero można użyć instrukcji
test eax, eax
cmp eax, 0
W ogólności
test x, y