saved few bytes in hariable handling code

This commit is contained in:
FeralChild64 committed 2020-07-17 21:12:17 +02:00
1 parent 6c930e8367
commit dafb902a44
2 files changed
+2 -7

No files matched your search

+1 -5
View File
@@ -87,7 +87,7 @@ varstr_garbage_collect_check_bptr:
dew TXTPTR
#endif
// Check whether the back-pointer is NULL
// Copy the back-pointer to OLDTXT, check if it is NULL
ldy #$00
@@ -293,11 +293,7 @@ varstr_garbage_collect_unused:
ldy #$00
lda (TXTPTR), y
// Decrement string length by 1, it will be easier to perform calculations
tax
dex
// Increase INDEX (shift offset) by string length + back-pointer length