Skip to content

Commit 49191e8

Browse files
fix parsing of labels
1 parent 0a222d0 commit 49191e8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/hooks.asm

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,9 @@ hook_show_labels:
238238
.loop:
239239
call ti.BufRight
240240
jr z,.getnumpages
241+
ld a,d
242+
cp a,ti.t2ByteTok
243+
jr z,.loop
241244
ld a,e
242245
cp a,ti.tLbl
243246
jr nz,.loop
@@ -260,6 +263,9 @@ hook_show_labels:
260263
call ti.BufRight
261264
pop bc
262265
ret z
266+
ld a,d
267+
cp a,ti.t2ByteTok
268+
jr z,.skiplabelsloop
263269
ld a,e
264270
cp a,ti.tLbl
265271
jr nz,.skiplabelsloop
@@ -283,6 +289,9 @@ hook_show_labels:
283289
call ti.BufRight
284290
pop hl
285291
ret z
292+
ld a,d
293+
cp a,ti.t2ByteTok
294+
jr z,.parse_labels
286295
ld a,e
287296
cp a,ti.tLbl
288297
jr nz,.parse_labels

0 commit comments

Comments
 (0)