[A83] Re: CP 0, dec a, etc...


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

[A83] Re: CP 0, dec a, etc...




It must be added that that one also contains some errors. For example, it
states:
|Mnemonic     |Clck|Siz|SZHPNC|  OP-Code   |
|AND r        | 4  | 1 |***P00|A0+rb       |

But in reality, AND sets the half carry to one. It should be good enough for
most usage though.

-----Original Message-----
From: assembly-83-bounce@lists.ticalc.org
[mailto:assembly-83-bounce@lists.ticalc.org]On Behalf Of Kirk Meyer
Sent: Wednesday, July 18, 2001 9:46 AM
To: assembly-83@lists.ticalc.org
Subject: [A83] Re: CP 0, dec a, etc...



INC and DEC of a single byte affect sign. INC and DEC of a word do not
affect sign. INC and DEC never affect carry regardless. For more
information, refer to the Zilog manual, or consult
http://www.ticalc.org/pub/text/z80/z80_reference.txt. Beware of some of the
texts in this directory, as they contain misleading information -- some for
example say that INC and DEC affect carry.




References: