MSM80C154S/83C154S/85C154HVS

100. SUBB A, data address (Substract memory from accumulator with borrow)

 

 

7

 

 

 

 

 

 

 

 

0

 

Instruction code

:

1

0

0

1

 

 

0

1

0

0

Byte 1

 

 

7

 

 

 

 

 

 

 

 

0

 

Data address

 

a7

a6

a5

a4

 

 

a3

a2

a1

a0

Byte 2

Operation

: (A)(A)–((C)+(data address))

 

 

 

Number of bytes

: 2

 

 

 

 

 

 

 

 

 

 

Number of cycles

: 1

 

 

 

 

 

 

 

 

 

 

Flags

:

C

AC

F0

RS1

 

 

RS0

OV

F1

P

 

(PSW)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Description

: The carry flag contents and the specified data address contents

 

 

are substracted from the accumulator contents. The result is

 

 

placed in the accumulator, and the flags are updated.

Example SUBB A, DPH

 

 

 

 

 

 

 

 

 

 

 

 

Instruction code

:

7

 

 

 

 

 

 

 

0

 

1

0

0

1

 

0

1

0

1

Byte 1

7

 

 

 

 

 

 

 

0

 

1

0

0

0

 

0

0

1

1

Byte 2

Before execution Carry flag

0

Auxiliary carry flag

0

Overflow flag

0

DPH

1 0 1 0 1 0 1 0

70 Accumulator

0 1 0 1 0 1 0 1

70

After execution Carry flag

1

Auxiliary carry flag

1

Overflow flag

0

DPH

1

0

1

0

 

1

0

1

0

7

 

 

 

 

 

 

 

0

Accumulator

 

 

 

1

0

1

0

 

1

0

1

1

7

 

 

 

 

 

 

 

0

360

Page 367
Image 367
Sonic Alert msm80154s, msm83c154s, msm85c154hvs user manual 360, Dph