![background image](http://html.mh-extra.com/html/hyundai/gms800/gms800_instruction-manual_2196205045.webp)
Instruction Set
41
JMP
( Unconditional jump )
Function
: PC
jump address
Description : Jump to new address.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
JMP !abs
1B
3
3
JMP [!abs]
1F
3
5
JMP [dp]
3F
2
4
Example
:
298 C10C 3BACC2
LOOP:
CALL
TXDAT
299 C10F C500
LDA
STPDAT
300 C111 4409
CMP
#9
301 C113 F004
BEQ
STPMOD
302 C115 20
CLRC
303 C116 1B0CC1
JMP
LOOP
LDA
( Load accumulator )
Function
: A
( M )
Description : The accumulator is loaded with contents of specified memory or immediate data.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
LDA #imm
C4
2
2
LDA dp
C5
2
3
LDA dp + X
C6
2
4
LDA !abs
C7
3
4
LDA !abs + Y
D5
3
5
LDA [ dp + X ]
D6
2
6
LDA [ dp ] + Y
D7
2
6
LDA { X }
D4
1
3
LDA { X }+
DB
1
4
Example
:
445 F894 C5C2
LDA
0C2H
; R2 PORT -> M(5CH)
446 F896 E55C
STA
5CH
447 F898 C404
LDA
#4
; 4 -> M(30H)
448 F89A 0530
ADC
30H