From 49191e864d93a63a941309864e8b1cc65e3b8029 Mon Sep 17 00:00:00 2001 From: mateoconlechuga Date: Thu, 6 Jun 2019 20:53:17 -0600 Subject: [PATCH] fix parsing of labels --- src/hooks.asm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/hooks.asm b/src/hooks.asm index 4b7d88c..2db058a 100644 --- a/src/hooks.asm +++ b/src/hooks.asm @@ -238,6 +238,9 @@ hook_show_labels: .loop: call ti.BufRight jr z,.getnumpages + ld a,d + cp a,ti.t2ByteTok + jr z,.loop ld a,e cp a,ti.tLbl jr nz,.loop @@ -260,6 +263,9 @@ hook_show_labels: call ti.BufRight pop bc ret z + ld a,d + cp a,ti.t2ByteTok + jr z,.skiplabelsloop ld a,e cp a,ti.tLbl jr nz,.skiplabelsloop @@ -283,6 +289,9 @@ hook_show_labels: call ti.BufRight pop hl ret z + ld a,d + cp a,ti.t2ByteTok + jr z,.parse_labels ld a,e cp a,ti.tLbl jr nz,.parse_labels