mirror of
https://github.com/irmen/prog8.git
synced 2025-07-24 20:24:09 +00:00
moved various miscellaneous builtin functions such as exit() and progend() to sys.*
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user