use pseudocode instead of jmp/bra selection

This commit is contained in:
FeralChild64 committed 2020-07-19 10:23:26 +02:00
1 parent 92359c64f2
commit 3b4cf3faef
17 files changed
+32 -125

No files matched your search

+5 -5
View File
@@ -24,6 +24,8 @@ find_line_from_current:
// Fetch the high byte of line number and compare
ldy #$03
// XXX consider optimized 46K/50K version
#if CONFIG_MEMORY_MODEL_60K
ldx #<OLDTXT+0
jsr peek_under_roms
@@ -67,6 +69,8 @@ find_line_next:
jsr peek_line_pointer_null_check
bcc find_line_fail // branch in no more lines exist
// XXX consider optimized 46K/50K version
ldy #$00
#if CONFIG_MEMORY_MODEL_60K
@@ -93,11 +97,7 @@ find_line_next:
pla
sta OLDTXT+0
#if HAS_OPCODES_65C02
bra find_line_from_current
#else
jmp find_line_from_current
#endif
jmp_8 find_line_from_current
find_line_fail:
+1 -5
View File
@@ -91,11 +91,7 @@ tk_shorten_3n_byte_nibble: // tk__nibble_flag = $00, both nibbles fr
// Reuse 'tk_shorten_1n_hi'
sty tk__byte_offset
#if HAS_OPCODES_65C02
bra tk_shorten_1n_hi
#else
jmp tk_shorten_1n_hi
#endif
jmp_8 tk_shorten_1n_hi
tk_shorten_3n_2bytes: // tk__nibble_flag = $FF, only the high nibble is free
+1 -5
View File
@@ -100,11 +100,7 @@ tokenise_line_loop:
jsr tk_shorten
#if HAS_OPCODES_65C02
bra !-
#else
jmp !-
#endif
jmp_8 !-
tokenise_line_keyword_V2: