aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2022-11-10 02:34:47 -0500
committerB. Watson <urchlay@slackware.uk>2022-11-10 02:34:47 -0500
commit0f21fb7da56f34d900cc4825346868a57b02523c (patch)
treeb843a57c02e4270f7187332fd130fd6dcc8c9790
parenta15dbde2369e02c7d5926e76049e0cd04dd75154 (diff)
downloaddla-asm-0f21fb7da56f34d900cc4825346868a57b02523c.tar.gz
memcheck failure does a reset instead of crash.
-rw-r--r--dla.s9
1 files changed, 5 insertions, 4 deletions
diff --git a/dla.s b/dla.s
index 130659f..63f6795 100644
--- a/dla.s
+++ b/dla.s
@@ -73,13 +73,14 @@ memcheck:
lda #<memmsg2
ldx #>memmsg2
jsr printmsg
-mem_bad:
- jmp mem_bad ; TODO: find a way to return to DOS from here
+ jsr getchr ; wait for user to press a key
+ jmp WARMSV ; get outta here (simulate Reset keypress)
mem_ok:
rts
-memmsg: .byte "Need 48K, only have ",0
-memmsg2: .byte "K.",$9b,"Disable BASIC, remove cartridge?",$9b,0
+memmsg: .byte "Need 48K, only have ",0
+memmsg2: .byte "K.",$9b,"Disable BASIC, remove cartridge?",$9b
+ .byte "Press any key...",0
xex_init memcheck