Added EXIT entry point
This commit is contained in:
parent
45d0d9f68f
commit
0e46e6bc75
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue