fixed regression in memory allocation routine
This commit is contained in:
1 parent
cabcfb6b35
commit
f4fb9d3016
1 file changed
+9
-8
@@ -273,8 +273,16 @@ cmd_let_assign_string_not_text_area:
|
|||||||
|
|
||||||
// XXX
|
// XXX
|
||||||
|
|
||||||
// No special case optimization is possible - alocate new memory area
|
// No special case optimization is possible
|
||||||
|
// Free the memory belonging to the old string
|
||||||
|
|
||||||
|
// XXX
|
||||||
|
// jsr varstr_free_DSCPNT_set
|
||||||
|
|
||||||
|
|
||||||
|
// And allocate memory for the new string
|
||||||
|
|
||||||
|
lda __FAC1+0
|
||||||
ldy #$00
|
ldy #$00
|
||||||
|
|
||||||
#if CONFIG_MEMORY_MODEL_60K
|
#if CONFIG_MEMORY_MODEL_60K
|
||||||
@@ -288,9 +296,6 @@ cmd_let_assign_string_not_text_area:
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
lda __FAC1+0
|
|
||||||
sta (VARPNT), y
|
|
||||||
|
|
||||||
jsr varstr_alloc
|
jsr varstr_alloc
|
||||||
|
|
||||||
// Copy the string
|
// Copy the string
|
||||||
@@ -344,8 +349,4 @@ cmd_let_assign_string_not_text_area:
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Free the memory of the old string
|
|
||||||
|
|
||||||
// XXX
|
|
||||||
|
|
||||||
rts
|
rts
|
||||||
Reference in new issue
Block a user