Hyundai GMS800 Instruction Manual page 54

Gms800 series 8-bit single-chip microcomputers
Table of Contents

Advertisement

HYUNDAI MicroElectonics
RET
( Return from subroutine )

Function
: SP

SP
Description : Return from subroutine.

Flag
:
Mnemonic
RET
Example
:
503 FF02 3B10FF
504
505 FF05 4115
506 FF07 E420D1
507 FF0A E40A02
508 FF0D 3BF5C0
509
510 FF10 A902
511 FF12 5115
512 FF14 E400D1
513 FF17 6F
RETI
( Return from interrupt routine )

Function
: SP

SP

SP
Description : Return from interrupt routine.
Flag
: ( restored )
Mnemonic
RETI
Example
:
273 E133 0E
274 E134 8929
275 E136 7002
276 E138 892A
277 E13A 0D
278 E13B 7F
50

SP + 1 ,
PC
M( SP ),

L
SP + 1 ,
PL
M( SP )
H
OP Code
6F
CALL
SOUND2:
SET1
LDM
LDM
CALL
SOUND3:
DEC
CLR1
LDM
RET

SP + 1 ,
PSW
M( SP ),

SP + 1 ,
PC
M( SP ),

L
SP + 1 ,
PC
M( SP )
H
OP Code
7F
TIMERINT: PUSH
INC
BNE
INC
TMQT:
POP
RETI
Bytes
Cycles
1
5
SOUND3
F_SOUND
PMR5,#20H
TIMER_COUNT200,#10
BYE
TIMER_COUNT200
F_SOUND
PMR5,#0
Bytes
Cycles
1
6
A
; SAVE ACC.
COUNT0
TMQT
COUNT1
A
; RESTORE ACC.
; RETURN

Advertisement

Table of Contents
loading

Table of Contents