NEC PD75402A Manuale Utente

Pagina di 195
166
CHAPTER  9.  INSTRUCTION  SET
9.4.5
 Increment/Decrement Instructions
INCS reg
Function: reg 
 reg + 1; Skip if reg = 0
Increments the contents of register reg (X, A, H, L). When the contents of register reg become 0 as the result
of incrementing, skips the next instruction.
INCS mem
Functions: (mem) 
  (mem) + 1; Skip if (mem) = 0, mem = D
7
 to D
0
 : 00H to FFH
Increments the data memory contents addressed by 8-bit immediate data mem. When the data memory
contents become 0 as a result of incrementing, skips the next instruction.
DECS reg
Function: reg 
 reg - 1; Skip if reg = FH
Decrements the contents of register reg (X, A, H, L). When the contents of register reg become FH as a result
of decrementing, skips the next instruction.