Skip to content

Commit c516700

Browse files
committed
Save an instruction in block decompress based on known state of carry flag
1 parent 451cc3c commit c516700

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ce/lz4.src

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ _lz4_Decompress_Block:
2020
; Calculate decompressed size based on final dst
2121
ex de, hl
2222
pop de
23-
or a, a
2423
sbc hl, de
2524
ret
2625

@@ -49,7 +48,7 @@ _lz4_Decompress:
4948
.type lz4_decompress_block_internal, @function
5049

5150
; Input: IY = compressed block, DE = decompression buffer, BC = size of block
52-
; Output: IY = after compressed block, DE = after decompressed data
51+
; Output: IY = after compressed block, DE = after decompressed data, carry flag clear
5352
; Destroys: AF, BC, HL
5453
lz4_decompress_block_internal:
5554
; HL = compressed block

0 commit comments

Comments
 (0)