summaryrefslogtreecommitdiff
path: root/programs/sub-suite
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-05-09 12:32:11 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-05-09 12:32:11 -0400
commit640037b972d022fc6877b4d2e1f51f329cbec9ea (patch)
tree31bb59ba505d42522063536ee3ce97c142bcc7fb /programs/sub-suite
parentf8c2e25b4ab337789a2e468a8f0aadb0c7fda42f (diff)
Subtract another 16 from the size in clr_arr.HEADmaster
This fixes a bug where it would zero out the info of the next malloc'd block.
Diffstat (limited to 'programs/sub-suite')
-rw-r--r--programs/sub-suite/subeditor.s1
1 files changed, 1 insertions, 0 deletions
diff --git a/programs/sub-suite/subeditor.s b/programs/sub-suite/subeditor.s
index 1525fa8..23a6163 100644
--- a/programs/sub-suite/subeditor.s
+++ b/programs/sub-suite/subeditor.s
@@ -70,6 +70,7 @@ init_tables:
clr_arr:
pha.q ; Preserve A.
and #0 ; Reset A.
+ sub s, #16 ; Subtract 16 from the size.
@loop:
mov.q (d+s), a ; Clear 16 bytes.
mov.q (d+s+8), a ;