small ST/TI/TI$ cleanup

This commit is contained in:
FeralChild64 committed 2020-07-19 10:59:18 +02:00
1 parent 3b4cf3faef
commit e85b5dbccf
4 files changed
+58 -20

No files matched your search

+7 -20
View File
@@ -93,28 +93,15 @@ fetch_variable_type_string:
fetch_variable_special:
lda VARNAM+0
cmp #$54 // 'T'
beq !+
cmp #$53 // 'S'
bne fetch_variable_find_addr
// First character is 'S', check the second one
lda VARNAM+1
cmp #$54 // 'T'
bne fetch_variable_find_addr
jmp fetch_variable_ST
!:
// First character is 'T', check the second one
lda VARNAM+1
cmp #$49
beq_16 fetch_variable_TI
cmp #$C9
jsr is_var_TI_string
beq_16 fetch_variable_TI_string
jsr is_var_TI
beq_16 fetch_variable_TI
jsr is_var_ST
beq_16 fetch_variable_ST
// FALLTROUGH
fetch_variable_find_addr: