Sbc r,q, Subtract with carry q-register from r-register, Set carry flag – Epson 6200A User Manual

Page 83

Advertising
background image

Source Format:

Operation:

OP-Code:

Type:

Clock Cycles:

Flag:

Description:

Example:

Source Format:

Operation:

OP-Code:

Type:

Clock Cycles:

Flag:

Description:

Example:

MSB

LSB

MSB

LSB

C

Z

D

I

C

Z

D

I

S1C6200/6200A CORE CPU MANUAL

EPSON

77

3 INSTRUCTION SET

SBC r,q

Subtract with carry q-register from r-register

SBC r,q

r

r - q - C

1

0

1

0

1

0

1

1

r

1

r

0

q

1

q

0

AB0H to ABFH

IV

7

Set if a borrow is generated; otherwise, reset.
Set if the result is zero; otherwise, reset.
Not affected
Not affected

Subtracts the carry flag and the contents of the q-register from the r-register.

SBC A,B

SBC MY,MX

A register

1110

1011

1011

B register

0010

0010

0010

Memory (MX)

1001

1001

1001

Memory (MY)

0100

0100

1011

C flag

1

0

1

Z flag

0

0

0

SCF

Set carry flag

SCF

C

1

1

1

1

1

0

1

0

0

0

0 0

1

F41H

VI

7

Set
Not affected
Not affected
Not affected

Sets the C (carry) flag.

SCF

C flag

0

1

Advertising