made LIST command more robust

This commit is contained in:
FeralChild64 committed 2020-07-21 18:26:42 +02:00
1 parent a1b13b31ef
commit 05cd426cba
1 file changed
+9 -2
+9 -2
View File
@@ -195,7 +195,7 @@ list_display_token_01:
// Check if token is known
cpx #TK__MAXTOKEN_keywords_01
bcs list_is_unknown // XXX consider displaying two question marks here, not one
bcs list_is_unknown
// Now ask for it to be printed
phy_trash_a
@@ -219,7 +219,7 @@ list_display_token_02:
// Check if token is known
cpx #TK__MAXTOKEN_keywords_02
bcs list_is_unknown // XXX consider displaying two question marks here, not one
bcs list_is_unknown
// Now ask for it to be printed
phy_trash_a
@@ -248,8 +248,15 @@ list_fetch_subtoken:
// Subtract $1 from token to get offset in token list
tax
beq list_fetch_subtoken_fail
dex
rts
list_fetch_subtoken_fail:
dey
jmp list_display_unknown_token
#endif // ROM layout