MSM80C154S/83C154S/85C154HVS

32. DEC Rr (Decrement register)

 

 

 

7

 

 

 

 

 

 

 

0

 

Instruction code

:

 

0

0

 

0

1

1

r2

r1

r0

Byte 1

Operation

: (Rr)(Rr)–1

r=0 thru 7

 

 

 

 

Number of bytes

: 1

 

 

 

 

 

 

 

 

 

 

Number of cycles

: 1

 

 

 

 

 

 

 

 

 

 

Flags

:

 

C

AC

F0

RS1

RS0

OV

F1

P

(PSW)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

 

 

 

 

 

 

 

 

 

 

: The register r contents are decremented by 1.

Example DEC R7

 

 

 

 

 

 

 

 

 

 

 

 

 

7

 

 

 

 

0

 

 

 

 

 

Instruction code

:

0

0

0 1

1

1

1 1

Byte 1

 

 

 

Before execution Register 7

1 0 0 0 0 0 0 0

70

After execution Register 7

0 1 1 1 1 1 1 1

70

282

Page 289
Image 289
Sonic Alert msm80154s, msm83c154s, msm85c154hvs user manual MSM80C154S/83C154S/85C154HVS DEC Rr Decrement register, 282