number-related syntax checking fix, small cleanup in BASIC

This commit is contained in:
FeralChild64 committed 2020-06-05 22:47:22 +02:00
1 parent 0436b5c62e
commit 8c4d705445
11 files changed
+89 -41

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
// #LAYOUT# STD * #TAKE
// #LAYOUT# * BASIC_0 #TAKE
// #LAYOUT# * * #IGNORE
//
// Fetches a single character
//
fetch_character:
ldy #0
#if CONFIG_MEMORY_MODEL_60K
ldx #<TXTPTR
jsr peek_under_roms
#else // CONFIG_MEMORY_MODEL_38K
lda (TXTPTR),y
#endif
// FALLTHROUGH
consume_character:
// Advance basic text pointer
inc TXTPTR+0
bne !+
inc TXTPTR+1
!:
rts