Sonic Alert msm85c154hvs, msm83c154s, msm80154s user manual 358

Models: msm83c154s msm85c154hvs msm80154s

1 378
Download 378 pages 26.51 Kb
Page 365
Image 365

MSM80C154S/83C154S/85C154HVS

98. SUBB A, @Rr (Substract indirect address from accumulator with borrow)

 

 

7

 

 

 

 

 

 

 

 

 

0

 

Instruction code

:

1

0

0

1

 

 

 

0

1

1

r

Byte 1

Operation

: (A)(A)–((C)+((Rr)))

r=0 or 1

 

 

 

Number of bytes

: 1

 

 

 

 

 

 

 

 

 

 

 

Number of cycles

: 1

 

 

 

 

 

 

 

 

 

 

 

Flags

:

C

AC

F0

RS1

 

 

 

RS0

OV

F1

P

(PSW)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

 

 

 

 

 

 

 

 

 

 

: The carry flag content and the data memory location contents

 

 

addressed by the register r contents are substracted from the

 

 

accumulator contents. The result is placed in the accumulator,

 

 

and the flags are updated.

 

 

 

 

Example SUBB A, @R0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

7

 

 

0

 

 

 

 

 

 

 

 

Instruction code

:

1 0 0 1 0 1 1 0 Byte 1

Before execution Carry flag

0

Auxiliary carry flag

0

Overflow flag

0

Register 0

0

1

0

0

 

0

1

1

1

7

 

 

 

 

 

 

 

0

47H

 

 

 

 

 

 

 

1

1

0

1

 

0

0

1

0

70 Accumulator

0 1 0 1 0 1 0 0

70

After execution Carry flag

1

Auxiliary carry flag

0

Overflow flag

1

Register 0

0

1

0

0

 

0

1

1

1

7

 

 

 

 

 

 

 

0

47H

 

 

 

 

 

 

 

1

1

0

1

 

0

0

1

0

7

 

 

 

 

 

 

 

0

Accumulator

 

 

 

1

0

0

0

 

0

0

1

0

7

 

 

 

 

 

 

 

0

358

Page 365
Image 365
Sonic Alert msm85c154hvs, msm83c154s, msm80154s user manual 358