1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-20 05:29:39 +00:00

Jump to boot prompt after main program exits.

This commit is contained in:
Stephan Mühlstrasser 2015-02-05 23:21:59 +01:00
parent 072e5e71c2
commit 7754c573d8
2 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,7 @@
.include "zeropage.inc"
.include "extzp.inc"
.include "osic1p.inc"
; ---------------------------------------------------------------------------
; Place the startup code in a special segment
@ -59,4 +60,4 @@ _init: ldx #$FF ; Initialize stack pointer to $01FF
; Back from main (this is also the _exit entry): force a software break
_exit: jsr donelib ; Run destructors
brk
jmp RESET ; Display boot menu after program exit

View File

@ -2,3 +2,4 @@
SCRNBASE := $D000 ; Base of video RAM
VIDEORAMSIZE := $0400 ; Size of C1P video RAM (1 kB)
INPUTC := $FD00 ; Input character from keyboard
RESET := $FF00 ; Reset address, show boot prompt