Re: A83: another flag question


[Prev][Next][Index][Thread]

Re: A83: another flag question




> Uhhh... How do you check if the carry flag is set?

"jp c,label" will jump to the label if the carry flag is set..
"jp nc,label" will jump to the label if the carry flag is cleared..
"scf" will set the carry flag..
and "ccf" will compliment the carry flag..
(so "scf" followed by "ccf" will clear the carry flag)


References: