Added EXIT entry point

This commit is contained in:
ceriel 1992-06-30 11:18:17 +00:00
parent 45d0d9f68f
commit 0e46e6bc75

View file

@ -9,6 +9,7 @@
.define RETSIZE, TRAPVAL, STACK, BRANCH .define RETSIZE, TRAPVAL, STACK, BRANCH
.define start, Push, Pop, STACKTh, STACKTl .define start, Push, Pop, STACKTh, STACKTl
.define F_DUM .define F_DUM
.define EXIT
.sect .zero .sect .zero
.sect .text .sect .text
.sect .rom .sect .rom
@ -186,6 +187,12 @@ start:
jsr OSBYTE ! input only from R423 jsr OSBYTE ! input only from R423
rts rts
EXIT:
ldx STACK ! load stackpointer
dex
dex ! adjust
txs ! reset hardware stackpointer
rts
! The subroutine Push pushes the registerpair AX onto the stack. ! The subroutine Push pushes the registerpair AX onto the stack.