mirror of
https://github.com/cc65/cc65.git
synced 2025-02-05 04:37:23 +00:00
Slice blocks even if the remainder is just sizeof(freeblock) bytes in size.
git-svn-id: svn://svn.cc65.org/cc65/trunk@3345 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
d8fa43d7a6
commit
2342052bc3
@ -214,7 +214,7 @@ TakeFromTop:
|
|||||||
|
|
||||||
BlockFound:
|
BlockFound:
|
||||||
bne SliceBlock ; Block is large enough to slice
|
bne SliceBlock ; Block is large enough to slice
|
||||||
cpx #HEAP_MIN_BLOCKSIZE+1 ; Check low byte
|
cpx #HEAP_MIN_BLOCKSIZE ; Check low byte
|
||||||
bcs SliceBlock ; Jump if block is large enough to slice
|
bcs SliceBlock ; Jump if block is large enough to slice
|
||||||
|
|
||||||
; The block is too small to slice it. Use the block in full. The block
|
; The block is too small to slice it. Use the block in full. The block
|
||||||
|
Loading…
x
Reference in New Issue
Block a user