DESCRIPTION OF INSTRUCTIONS

33. DEC data address (Decrement memory)

 

 

 

7

 

 

 

 

 

 

 

 

 

0

 

Instruction code

:

 

0

 

0

 

0

 

1

0

1

0

1

Byte 1

 

 

 

7

 

 

 

 

 

 

 

 

 

0

 

Data address

 

a7

a6

a5

a4

a3 a2 a1

a0

Byte 2

Operation

: (data address)(data address)–1

 

 

 

Number of bytes

: 2

 

 

 

 

 

 

 

 

 

 

 

 

Number of cycles

: 1

 

 

 

 

 

 

 

 

 

 

 

 

Flags

:

 

C

AC

F0

RS1

RS0

OV

F1

P

 

(PSW)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

: The specified data address contents are decremented by 1.

Example DEC 5AH

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

0

 

 

 

 

 

Instruction code

:

0

0

0

1

0

1

0

1

Byte 1

 

 

 

 

7

 

 

 

 

 

 

0

 

 

 

 

 

 

 

0

1

0

1

1

0

1

0

Byte 2

 

 

 

Before execution 5AH

1 1 1 1 1 1 1 1

70

After execution 5AH

1 1 1 1 1 1 1 0

70

283

Page 290
Image 290
Sonic Alert msm85c154hvs, msm83c154s, msm80154s user manual DEC data address Decrement memory, 283