aboutsummaryrefslogtreecommitdiff
path: root/tools/apultra/asm/68000/unaplib_68000.S
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-12-06 22:14:14 +0000
committerJuan J. Martinez <jjm@usebox.net>2021-12-06 22:14:14 +0000
commit11a569e72365370fc908de56b8a05da754980bf3 (patch)
tree8f62d170a53afc69566efbf9e26fce1b7cb6e338 /tools/apultra/asm/68000/unaplib_68000.S
parentb7883d2690720a02f440959ea3f32a9105618213 (diff)
downloadubox-msx-lib-11a569e72365370fc908de56b8a05da754980bf3.tar.gz
ubox-msx-lib-11a569e72365370fc908de56b8a05da754980bf3.zip
Update apultra to 1.4.4
Diffstat (limited to 'tools/apultra/asm/68000/unaplib_68000.S')
-rw-r--r--tools/apultra/asm/68000/unaplib_68000.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/apultra/asm/68000/unaplib_68000.S b/tools/apultra/asm/68000/unaplib_68000.S
index a60ae32..4ecf6ac 100644
--- a/tools/apultra/asm/68000/unaplib_68000.S
+++ b/tools/apultra/asm/68000/unaplib_68000.S
@@ -1,4 +1,4 @@
-; unaplib_68000.s - aPLib decompressor for 68000 - 154 bytes
+; unaplib_68000.s - aPLib decompressor for 68000 - 156 bytes
;
; in: a0 = start of compressed data
; a1 = start of decompression buffer
@@ -87,6 +87,7 @@ apl_decompress:
addx.b d0,d0 ; shift second bit into d0
bsr.s .get_dibits ; read a data bit into d0, one into carry
addx.b d0,d0 ; shift second bit into d0
+ tst.b d0 ; check offset value
beq.s .write_zero ; if offset is zero, write a 0
move.l a1,a6 ; calculate backreference address