![background image](http://html.mh-extra.com/html/hyundai/gms800/gms800_instruction-manual_2196205047.webp)
Instruction Set
43
LDM
( Load memory )
Function
: ( M )
#imm
Description : The memory is loaded with immediate data.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
LDM dp,#imm
E4
3
5
Example
:
490 C1FA E40003
TXCLR:
LDM
DPL,#0
491 C1FD E40004
LDM
DPH,#0
492 C200 91C6
CLR1
CMDDAT
493 C202 C503
LDA
DPL
494 C204 3B35C3
CALL
LCDWR
LDX
( Load X-register )
Function
: X
( M )
Description : The X-register is loaded with contents of the specified memory or of the immediate data.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
LDX #imm
1E
2
2
LDX dp
CC
2
3
LDX dp + Y
CD
2
4
LDX !abs
DC
3
4
Example
:
421 C1B1 CC15
ADCON1:
LDX
CHCNT
;DATA STORE
422 C1B3 E617
STA
ADCD0+X
423 C1B5 012F
SET1
ADCHF
; CH.CHANGE FLAG SET