From e9a85e92dc336cd38244bb7857635644663892d6 Mon Sep 17 00:00:00 2001 From: introspec <31136975+specke@users.noreply.github.com> Date: Wed, 7 Apr 2021 19:54:23 +0100 Subject: [PATCH] Minor edit Make returned values more predictable --- asm/z80/unlzsa1_fast.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asm/z80/unlzsa1_fast.asm b/asm/z80/unlzsa1_fast.asm index a042e69..2b490b4 100644 --- a/asm/z80/unlzsa1_fast.asm +++ b/asm/z80/unlzsa1_fast.asm @@ -158,7 +158,7 @@ LongerMatch: ex (sp),hl : NEXT_HL : add (hl) : jr nc,CopyMatch2 ; the two-byte match length equal to zero ; designates the end-of-data marker ld a,b : or c : jr nz,CopyMatch2.UseC - pop hl : ret + pop bc : ret ELSE @@ -190,7 +190,7 @@ VeryLongMatch: ; the codes are designed to overflow; ; the two-byte match length equal to zero ; designates the end-of-data marker ld a,b : or c : jr nz,LongerMatch.UseC - pop hl : ret + pop bc : ret ENDIF