Skip to content

Commit 6c0ae7f

Browse files
committed
optimized dzx0t_new_offset
1 parent 87cd46d commit 6c0ae7f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/ce/zx0.src

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ dzx0t_new_offset_skip:
3434
call nc, dzx0t_elias ; obtain offset MSB
3535
inc c
3636
ret z ; check end marker
37-
ld b, c
38-
ld c, (hl) ; obtain offset LSB
37+
ld b, (hl) ; obtain offset LSB
3938
inc hl
40-
rr b ; last offset bit becomes first length bit
41-
rr c
42-
push bc
43-
pop iy ; preserve new offset
39+
rr c ; last offset bit becomes first length bit
40+
rr b
41+
ld iyl, b ; preserve new offset
42+
ld iyh, c
4443
ld bc, 1 ; obtain length
4544
call nc, dzx0t_elias
4645
inc bc

0 commit comments

Comments
 (0)