From 6c0ae7fbeb11cdb64428c50d6b61927b8042cb68 Mon Sep 17 00:00:00 2001 From: zerico <71151164+ZERICO2005@users.noreply.github.com> Date: Tue, 13 Jan 2026 13:49:18 -0800 Subject: [PATCH] optimized dzx0t_new_offset --- src/ce/zx0.src | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/ce/zx0.src b/src/ce/zx0.src index 1c85077ea..9acaaa6ca 100644 --- a/src/ce/zx0.src +++ b/src/ce/zx0.src @@ -34,13 +34,12 @@ dzx0t_new_offset_skip: call nc, dzx0t_elias ; obtain offset MSB inc c ret z ; check end marker - ld b, c - ld c, (hl) ; obtain offset LSB + ld b, (hl) ; obtain offset LSB inc hl - rr b ; last offset bit becomes first length bit - rr c - push bc - pop iy ; preserve new offset + rr c ; last offset bit becomes first length bit + rr b + ld iyl, b ; preserve new offset + ld iyh, c ld bc, 1 ; obtain length call nc, dzx0t_elias inc bc