Hyundai GMS800 Instruction Manual page 58

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

Advertisement

HYUNDAI MicroElectonics
SETG
( Set G-flag )

Function
: ( G )
Description : Set G-flag to "1".


Flag
:
1
Mnemonic
SETG
Example
:
236 E114 C0
237 E115 C605
238 E117 40
239 E118 E605
STA
( Store accumulator )

Function
: ( M )
Description : Store the contents of accumulator to memory.

Flag
:
Mnemonic
STA dp
STA dp + X
STA !abs
STA !abs + Y
STA [ dp + X ]
STA [ dp ] + Y
STA { X }
STA { X }+
Example
:
339 F16B C400
340 F16D 0534
341 F16F E534
54
" 1 "
OP Code
C0
SETG
LDA
CLRG
STA
A
OP Code
E5
E6
E7
F5
F6
F7
F4
FB
LDA
ADC
STA
Bytes
Cycles
1
2
WORK0+X ; MOVE FROM PAGE0 TO PAGE1
WORK0+X
Bytes
Cycles
2
4
2
5
3
5
3
6
2
7
2
7
1
4
1
4
#0
34H
;M(34H) + CY -> M(34)
34H

Advertisement

Table of Contents
loading

Table of Contents