Skip to content

Commit

Permalink
fix parsing of labels
Browse files Browse the repository at this point in the history
  • Loading branch information
mateoconlechuga committed Jun 7, 2019
1 parent 0a222d0 commit 49191e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/hooks.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 49191e8

Please sign in to comment.