Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lochnessduck
· 7mo ago · 0 comments
I use the carry flag in a lot of z80 assembly for communicating a status of an operation. XOR doesn’t mess with the carry flag, I think it’s another point in favor of xor. (Though I don’t remember even considering using sub)
Comments
[–]
Jare
7mo ago
This is the exact reason I remember from back in the 80's. Perform arithmetic, clear register, CF is still valid.