saved few bytes in hariable handling code
This commit is contained in:
1 parent
6c930e8367
commit
dafb902a44
2 files changed
+2
-7
No files matched your search
@@ -70,9 +70,8 @@ varstr_free_inside:
|
|||||||
bcc !+
|
bcc !+
|
||||||
inc DSCPNT+2
|
inc DSCPNT+2
|
||||||
!:
|
!:
|
||||||
// Put the size - this value will be used by the garbage collector // XXX maybe size-1 would be better?
|
// Put the size-1, garbage collector will make use of this value
|
||||||
|
|
||||||
inc DSCPNT+0
|
|
||||||
lda DSCPNT+0
|
lda DSCPNT+0
|
||||||
ldy #$00
|
ldy #$00
|
||||||
|
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ varstr_garbage_collect_check_bptr:
|
|||||||
dew TXTPTR
|
dew TXTPTR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Check whether the back-pointer is NULL
|
// Copy the back-pointer to OLDTXT, check if it is NULL
|
||||||
|
|
||||||
ldy #$00
|
ldy #$00
|
||||||
|
|
||||||
@@ -293,11 +293,7 @@ varstr_garbage_collect_unused:
|
|||||||
|
|
||||||
ldy #$00
|
ldy #$00
|
||||||
lda (TXTPTR), y
|
lda (TXTPTR), y
|
||||||
|
|
||||||
// Decrement string length by 1, it will be easier to perform calculations
|
|
||||||
|
|
||||||
tax
|
tax
|
||||||
dex
|
|
||||||
|
|
||||||
// Increase INDEX (shift offset) by string length + back-pointer length
|
// Increase INDEX (shift offset) by string length + back-pointer length
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user