![background image](http://html.mh-extra.com/html/hyundai/gms800/gms800_instruction-manual_2196205054.webp)
HYUNDAI MicroElectonics
50
RET
( Return from subroutine )
Function
: SP
SP + 1 , PC
L
M( SP ),
SP
SP + 1 , PL
H
M( SP )
Description : Return from subroutine.
Flag
:
Mnemonic
OP Code
Bytes
Cycles
RET
6F
1
5
Example
:
503 FF02 3B10FF
CALL
SOUND3
504
SOUND2:
505 FF05 4115
SET1
F_SOUND
506 FF07 E420D1
LDM
PMR5,#20H
507 FF0A E40A02
LDM
TIMER_COUNT200,#10
508 FF0D 3BF5C0
CALL
BYE
509
SOUND3:
510 FF10 A902
DEC
TIMER_COUNT200
511 FF12 5115
CLR1
F_SOUND
512 FF14 E400D1
LDM
PMR5,#0
513 FF17 6F
RET
RETI
( Return from interrupt routine )
Function
: SP
SP + 1 , PSW
M( SP ),
SP
SP + 1 , PC
L
M( SP ),
SP
SP + 1 , PC
H
M( SP )
Description : Return from interrupt routine.
Flag
: ( restored )
Mnemonic
OP Code
Bytes
Cycles
RETI
7F
1
6
Example
:
273 E133 0E
TIMERINT: PUSH
A
; SAVE ACC.
274 E134 8929
INC
COUNT0
275 E136 7002
BNE
TMQT
276 E138 892A
INC
COUNT1
277 E13A 0D
TMQT:
POP
A
; RESTORE ACC.
278 E13B 7F
RETI
; RETURN