Added EXIT entry point
This commit is contained in:
parent
45d0d9f68f
commit
0e46e6bc75
|
@ -9,6 +9,7 @@
|
|||
.define RETSIZE, TRAPVAL, STACK, BRANCH
|
||||
.define start, Push, Pop, STACKTh, STACKTl
|
||||
.define F_DUM
|
||||
.define EXIT
|
||||
.sect .zero
|
||||
.sect .text
|
||||
.sect .rom
|
||||
|
@ -186,6 +187,12 @@ start:
|
|||
jsr OSBYTE ! input only from R423
|
||||
rts
|
||||
|
||||
EXIT:
|
||||
ldx STACK ! load stackpointer
|
||||
dex
|
||||
dex ! adjust
|
||||
txs ! reset hardware stackpointer
|
||||
rts
|
||||
|
||||
! The subroutine Push pushes the registerpair AX onto the stack.
|
||||
|
||||
|
|
Loading…
Reference in a new issue