Difference between revisions of "Zero Flag"
m (Protected "Zero Flag" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite))) |
|||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | The Zero Flag (Z) is set whenever the result of the previous operation resulted in a zero (0). | + | [[Category:CP1610]] |
| + | The Zero Flag (Z) is set whenever the result of the previous operation resulted in a zero (0). The behavior of the following opcodes is affected by the value of the Zero Flag.<br/><br/> | ||
| + | |||
| + | [[BEQ]]<br/> | ||
| + | [[BNEQ]]<br/> | ||
| + | [[BLE]]<br/> | ||
| + | [[BGT]]<br/> | ||
| + | [[GSWD]]<br/><br/> | ||
| + | |||
| + | The following opcodes affect the value of the Zero Flag:<br/><br/> | ||
| + | |||
| + | [[INCR]]<br/> | ||
| + | [[DECR]]<br/> | ||
| + | [[COMR]]<br/> | ||
| + | [[NEGR]]<br/> | ||
| + | [[ADCR]]<br/> | ||
| + | [[RSWD]]*<br/> | ||
| + | [[SWAP]]<br/> | ||
| + | [[SLL]]<br/> | ||
| + | [[RLC]]<br/> | ||
| + | [[SLLC]]<br/> | ||
| + | [[SLR]]<br/> | ||
| + | [[SAR]]<br/> | ||
| + | [[RRC]]<br/> | ||
| + | [[SARC]]<br/> | ||
| + | [[MOVR]]<br/> | ||
| + | [[ADDR]]<br/> | ||
| + | [[SUBR]]<br/> | ||
| + | [[CMPR]]<br/> | ||
| + | [[ANDR]]<br/> | ||
| + | [[XORR]]<br/> | ||
| + | [[ADD]]<br/> | ||
| + | [[ADD@]]<br/> | ||
| + | [[SUB]]<br/> | ||
| + | [[SUB@]]<br/> | ||
| + | [[CMP]]<br/> | ||
| + | [[CMP@]]<br/> | ||
| + | [[AND]]<br/> | ||
| + | [[AND@]]<br/> | ||
| + | [[XOR]]<br/> | ||
| + | [[XOR@]]<br/> | ||
| + | |||
| + | * Indicates slight variation from normal Sign Flag behavior. See opcode documentation for more details. | ||
Latest revision as of 09:46, 4 December 2010
The Zero Flag (Z) is set whenever the result of the previous operation resulted in a zero (0). The behavior of the following opcodes is affected by the value of the Zero Flag.
The following opcodes affect the value of the Zero Flag:
INCR
DECR
COMR
NEGR
ADCR
RSWD*
SWAP
SLL
RLC
SLLC
SLR
SAR
RRC
SARC
MOVR
ADDR
SUBR
CMPR
ANDR
XORR
ADD
ADD@
SUB
SUB@
CMP
CMP@
AND
AND@
XOR
XOR@
- Indicates slight variation from normal Sign Flag behavior. See opcode documentation for more details.