![background image](http://html.mh-extra.com/html/hyundai/gms800/gms800_instruction-manual_2196205053.webp)
Instruction Set
49
POP
( Pop from stack )
Function
: SP
SP + 1 , Reg.
M( SP )
Description : Pop data from stack.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
POP A
0D
1
4
POP X
2D
1
4
POP Y
4D
1
4
POP PSW
6D
1
4
Example
:
226 F111 0E
PUSH
A
; SAVE ACC.
227 F112 3B90F1
CALL
CALCULATE
228 F115 0D
POP
A
; RESTORE ACC.
PUSH
( Push to stack )
Function
: M( SP )
Reg. , SP
SP - 1
Description : Push the contents of operand (A,X,Y,PSW) into stack
Flag
:
Mnemonic
OP Code
Bytes
Cycles
PUSH A
0E
1
4
PUSH X
2E
1
4
PUSH Y
4E
1
4
PUSH PSW
6E
1
4
Example
:
374
ADCC:
; INTERRUPT ROUTINE
376 C172 0E
PUSH
A
; SAVE ALL REGISTERS AND PSW
377 C173 2E
PUSH
X
378 C174 4E
PUSH
Y
379 C175 6E
PUSH
PSW
380 C176 13E821
BBC
ADSF,ADCC3
;CHECK PREVIOUS A/D CON.COMPLETED
381 C179 132F18
BBC
ADCHF,ADCC2
; DEFINE CH. CHANGE ?