HYUNDAI MicroElectonics
54
SETG
( Set G-flag )
Function
: ( G )
“ 1 ”
Description : Set G-flag to “1”.
Flag
:
1
Mnemonic
OP Code
Bytes
Cycles
SETG
C0
1
2
Example
:
236 E114 C0
SETG
237 E115 C605
LDA
WORK0+X ; MOVE FROM PAGE0 TO PAGE1
238 E117 40
CLRG
239 E118 E605
STA
WORK0+X
STA
( Store accumulator )
Function
: ( M )
A
Description : Store the contents of accumulator to memory.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
STA dp
E5
2
4
STA dp + X
E6
2
5
STA !abs
E7
3
5
STA !abs + Y
F5
3
6
STA [ dp + X ]
F6
2
7
STA [ dp ] + Y
F7
2
7
STA { X }
F4
1
4
STA { X }+
FB
1
4
Example
:
339 F16B C400
LDA
#0
340 F16D 0534
ADC
34H
;M(34H) + CY -> M(34)
341 F16F E534
STA
34H