You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>eZ80</strong> <strong>CPU</strong><br />
User Manual<br />
35<br />
DEC qq<br />
Decrement<br />
Operation<br />
Description<br />
If .L or (ADL and not .S)<br />
qq[23:0] ← qq[23:0] – 1<br />
else<br />
qq[15:0] ← qq[15:0] – 1<br />
qq[23:16] ← 0<br />
The qq operand is any of the BC, DE, HL, IX, IY, or SP registers. The contents<br />
of the specified register decrement by 1. ADL mode affects operation with the<br />
BC, DE, HL, SP, IX and IY registers. ADL mode may be overridden with the .S<br />
or .L suffix.<br />
Condition Bits Affected<br />
None<br />
Mnemonic Operands ADL Mode Cycles Op Codes<br />
DEC ss X 1 kk<br />
DEC.S ss 1 2 52, kk<br />
DEC.L ss 0 2 49, kk<br />
DEC IX X 1 DD, 2B<br />
DEC.S IX 1 2 52, DD, 2B<br />
DEC.L IX 0 2 49, DD, 2B<br />
DEC IY X 1 FD, 2B<br />
DEC.S IY 1 2 52, FD, 2B<br />
DEC.L IY 0 2 49, FD, 2B<br />
kk = binary code 00 ss1 011 where ss identifies the BC, DE, HL, or SP register<br />
assembled as follows into the object code.<br />
Register<br />
ss<br />
BC 00<br />
DE 01<br />
HL 10<br />
SP 11<br />
UM007701-1100