mirror of
https://github.com/emmanuel-marty/lzsa.git
synced 2025-08-08 03:25:26 +00:00
Minor edit
Make returned values more predictable
This commit is contained in:
@@ -158,7 +158,7 @@ LongerMatch: ex (sp),hl : NEXT_HL : add (hl) : jr nc,CopyMatch2
|
|||||||
; the two-byte match length equal to zero
|
; the two-byte match length equal to zero
|
||||||
; designates the end-of-data marker
|
; designates the end-of-data marker
|
||||||
ld a,b : or c : jr nz,CopyMatch2.UseC
|
ld a,b : or c : jr nz,CopyMatch2.UseC
|
||||||
pop hl : ret
|
pop bc : ret
|
||||||
|
|
||||||
ELSE
|
ELSE
|
||||||
|
|
||||||
@@ -190,7 +190,7 @@ VeryLongMatch: ; the codes are designed to overflow;
|
|||||||
; the two-byte match length equal to zero
|
; the two-byte match length equal to zero
|
||||||
; designates the end-of-data marker
|
; designates the end-of-data marker
|
||||||
ld a,b : or c : jr nz,LongerMatch.UseC
|
ld a,b : or c : jr nz,LongerMatch.UseC
|
||||||
pop hl : ret
|
pop bc : ret
|
||||||
|
|
||||||
ENDIF
|
ENDIF
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user