implement reporting BASIC errors, continuing work on tokeniser

This commit is contained in:
Paul Gardner-Stephen committed 2019-04-26 22:27:59 +09:30
1 parent 428bd8e497
commit 1bb72973fa
2 files changed
+65 -13

No files matched your search

+31
View File
@@ -0,0 +1,31 @@
;; Error # in X
do_basic_error:
;; "?"
txa
pha
lda #$3f
jsr $ffd2
pla
tax
;; Error message text
jsr print_packed_message
lda #$20
jsr $ffd2
;; "ERROR"
ldx #33
jsr print_packed_message
;; New lines
lda #$0d
jsr $ffd2
lda #$00
jsr $ffd2
;; XXX - Restore stack depth first?
jmp basic_main_loop