![background image](http://html.mh-extra.com/html/hyundai/gms800/gms800_instruction-manual_2196205060.webp)
HYUNDAI MicroElectonics
56
STX
( Store X-register )
Function
: ( M )
X
Description : Store the contents of X-register to memory.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
STX dp
EC
2
4
STX dp + Y
ED
2
5
STX !abs
FC
3
5
Example
:
396 F1A2 8F
INC
X
397 F1A3 EC29
STX
POINTER
; STORE X REG. INTO POINTER
398 F1A5 C67E
LDA
MODE+X
STY
( Store Y-register )
Function
: ( M )
Y
Description : Store the contents of Y-register to memory.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
STY dp
E9
2
4
STY dp + X
F9
2
5
STY !abs
F8
3
5
Example
:
401 F1A7 BE
DEC
Y
402 F1A8 D5A2F1
LDA
!DY
403 F1AB E97E
STY
MODE
; STORE Y REG. INTO
‘
MODE
’
404 F1AD 445A
CMP
#5AH