Setting and clearing flags
Pliers
Posts: 280
In an assembly instruction, if a flag gets set, will it get cleared by the next WZ instruction if that instruction does not set the flag?
Comments
Each instruction that have a wz effect specified will modify the z flag. Its state will remain unchanged untill the next instruction with the wz effect specified.
That mean that you can have several if_z lines that will all react to the last line that had the wz effect specification thus affecting it
Will the next wz effect specified, clear Z if that is the case?
ericball, Ill checkout your code. THANK YOU VERY MUCH.
Mine was not working
I hold button 1 in, and then press button 2 or 3.
Therefore not setting the Z flag.
OK. I got some ideas. I'll be back.
You're also not resetting OUTA. Hmm...