compare a-1
Jannes Braet 15 Nov 2013 21:16
Hello I wanted to compare the c register to the a register -1
I got this but it has a small error. I need to save the value of my a register so I thought to just use inc a once again before the jp but that wouldn't work since it would change the flags once again.
And the code I have now won't work either because it will restore the flags I had when I used push af. I don't really know how to solve this ._. so can anyone help me out on this? Thanks in advance.
inc c 0C
push af F5
dec a 3D
cp c B9
pop af F1
jp z,label CA----