Hyundai GMS800 Instruction Manual page 56

Gms800 series 8-bit single-chip microcomputers
Table of Contents

Advertisement

HYUNDAI MicroElectonics
SBC
( Subtract with carry )

Function
: A
( A )
Description : subtract the contents of memory and the complement of carry flag from accumulator.
The result is left in the accumulator.

Flag
:
Mnemonic
SBC #imm
SBC dp
SBC dp + X
SBC !abs
SBC !abs + Y
SBC [ dp + X ]
SBC [ dp ] + Y
SBC { X }
Example
:
244 E117 A0
245 E118 C56E
246 E11A 245F
247 E11C E5A6
SET1
( Set bit )
Function
: ( dp.bit )
Description : Set the specified bit of memory to 1.

Flag
:
Mnemonic
SET1 dp.bit
* X means that the bit4 of op code is "0"
Example
:
61 E03E C11F
62 E040 2F02
63 E042 D11F
64 E044 FF
52


( M )
~( C )
OP Code
24
25
26
27
35
36
37
34
SETC
LDA
SBC
STA

"1 "
OP Code
x1
SET1
BRA
CLR1
LPE7:
NOP
Bytes
Cycles
2
2
2
3
2
4
3
4
3
5
2
6
2
6
1
3
DATA1
#5FH
; DATA1 - #5FH -> DATA0
DATA0
Bytes
Cycles
2
4
1FH.6
LPE7
1FH.6

Advertisement

Table of Contents
loading

Table of Contents