moved various miscellaneous builtin functions such as exit() and progend() to sys.*

This commit is contained in:
Irmen de Jong
2021-01-08 16:20:56 +01:00
parent d61420f1c6
commit f61682cdc7
20 changed files with 271 additions and 152 deletions

View File

@@ -1078,21 +1078,3 @@ _loop_hi ldy _index_first
.pend
func_exit .proc
; -- immediately exit the program with a return code in the A register
jsr c64.CLRCHN ; reset i/o channels
ldx orig_stackpointer
txs
rts ; return to original caller
.pend
func_read_flags_stack .proc
; -- put the processor status register on the stack
php
pla
sta P8ESTACK_LO,x
dex
rts
.pend