fixed another bug in string release code
This commit is contained in:
1 parent
45235bff46
commit
a59f4647ad
9 files changed
+13
-5
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -36,9 +36,9 @@
|
|||||||
|
|
||||||
// Memory model
|
// Memory model
|
||||||
|
|
||||||
#define CONFIG_MEMORY_MODEL_38K
|
// #define CONFIG_MEMORY_MODEL_38K
|
||||||
// #define CONFIG_MEMORY_MODEL_46K
|
// #define CONFIG_MEMORY_MODEL_46K
|
||||||
// #define CONFIG_MEMORY_MODEL_50K
|
#define CONFIG_MEMORY_MODEL_50K
|
||||||
// #define CONFIG_MEMORY_MODEL_60K
|
// #define CONFIG_MEMORY_MODEL_60K
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -36,9 +36,9 @@
|
|||||||
|
|
||||||
// Memory model
|
// Memory model
|
||||||
|
|
||||||
#define CONFIG_MEMORY_MODEL_38K
|
// #define CONFIG_MEMORY_MODEL_38K
|
||||||
// #define CONFIG_MEMORY_MODEL_46K
|
// #define CONFIG_MEMORY_MODEL_46K
|
||||||
// #define CONFIG_MEMORY_MODEL_50K
|
#define CONFIG_MEMORY_MODEL_50K
|
||||||
// #define CONFIG_MEMORY_MODEL_60K
|
// #define CONFIG_MEMORY_MODEL_60K
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ tmpstr_free_all:
|
|||||||
|
|
||||||
tmpstr_free_all_loop:
|
tmpstr_free_all_loop:
|
||||||
|
|
||||||
// Free all the strings, one by one
|
// Free all the temporary strings, one by one
|
||||||
|
|
||||||
cpx TEMPPT
|
cpx TEMPPT
|
||||||
beq tmpstr_free_all_reset
|
beq tmpstr_free_all_reset
|
||||||
@@ -21,10 +21,18 @@ tmpstr_free_all_loop:
|
|||||||
lda $00, x
|
lda $00, x
|
||||||
beq !+
|
beq !+
|
||||||
|
|
||||||
|
sta DSCPNT+0
|
||||||
|
lda $01, x
|
||||||
|
sta DSCPNT+1
|
||||||
|
lda $02, x
|
||||||
|
sta DSCPNT+2
|
||||||
|
|
||||||
phx_trash_a
|
phx_trash_a
|
||||||
jsr varstr_free_non_0
|
jsr varstr_free_non_0
|
||||||
plx_trash_a
|
plx_trash_a
|
||||||
!:
|
!:
|
||||||
|
inx
|
||||||
|
inx
|
||||||
inx
|
inx
|
||||||
bne tmpstr_free_all_loop // branch always
|
bne tmpstr_free_all_loop // branch always
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user