beautypg.com

Zilog Z8F0130 User Manual

Page 234

background image

eZ8

CPU Core

User Manual

UM012820-0810

SBC Instruction

219

SBC R15, @R10

Object Code: 33 FA

If Register

34h

contains the value

2Eh

, the Carry flag is set, and Register

12h

contains the value

1bh

, the following statement leaves the value

12h

in Register

34h

, sets the D flag, and clears the C, Z, S, V, and H flags:

SBC 34h, 12h

Object Code: 34 12 34

If Register

4Bh

contains the value

82h

, the Carry flag is set, Working

Register R3 contains the value

10h

, and Register

10h

contains the value

01h

, the following statement leaves the value

80h

in Register

4Bh

, sets

the D and S flags and clears the C, Z, V, and H flags:

SBC 4Bh, @R3

Object Code: 35 E3 4B

If Register

6Ch

contains the value

2Ah

, and the Carry flag is not set, the

following statement leaves the value

27h

in Register

6Ch

, sets the D flag,

and clears the C, Z, S, V, and H flags:

SBC 6Ch, #03h

Object Code: 36 6C 03

If Register

D4h

contains the value

5Fh

, Register

5Fh

contains the value

4Ch

, and the Carry flag is set, the following statement leaves the value

49h

in Register

5Fh

, sets the D flag, and clears the C, Z, S, V, and H

flags:

SBC @D4h, #02h

Object Code: 37 D4 02