Compare instructions – NEC PD750008 User Manual

Page 300

Advertising
background image

280

µPD750008 USER'S MANUAL

INCS mem

Function: (mem) <– (mem)+1 ; Skip if (mem) = 0, mem = D

7-0

: 00H-FFH

Increments the data at the data memory location addressed by the 8-bit immediate data mem. If the result

of increment produces data that is 0, the immediately following instruction is skipped.

DECS reg

Function: reg <– reg–1 ; Skip if reg = FH

Decrements the contents of register reg (X, A, H, L, D, E, B, C). If the result of decrement produces reg

= FH, the immediately following instruction is skipped.

DECS rp’

Function: rp’ <– rp’–1 ; Skip if rp’ = FFH

Decrements the contents of register pair rp’ (XA, HL, DE, BC, XA’, HL’, DE’, BC’). If the result of decrement

produces rp’ = FFH, the immediately following instruction is skipped.

11.4.7 Compare Instructions

SKE reg,#n4

Function: Skip if reg = n4 n4 = I

3-0

: 0-FH

Skips the immediately following instruction if the contents of register reg (X, A, H, L, D, E, B, C) match the

4-bit immediate data n4.

SKE @HL,#n4

Function: Skip if (HL) = n4 n4 = I

3-0

: 0-FH

Skips the immediately following instruction if the data at the data memory location addressed by the HL

register pair match the 4-bit immediate data n4.

SKE A,@HL

Function: Skip if A = (HL)

Skips the immediately following instruction if the contents of the A register match the data at the data memory

location addressed by the HL register pair.

Advertising
This manual is related to the following products: