Skip to content

Commit 5359693

Browse files
PeterTillemaMatt Waltz
authored andcommitted
Fix #59 (#60)
* Fix ti_DetectVar bug * Change iy to hl * Replaces tabs with spaces, hopefully * Stupid me
1 parent ed453af commit 5359693

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/fileioc/fileioc.asm

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -833,13 +833,9 @@ _DetectVar:
833833
; arg0 : address of pointer to being search
834834
; arg1 : pointer to null terminated string of data to search for
835835
; arg2 : type of varaible to search for
836-
pop hl
837-
pop de
838-
pop bc
839-
push bc
840-
push de
841-
push hl
842-
ld a,c
836+
ld hl,9
837+
add hl,sp
838+
ld a,(hl)
843839
jr +_
844840

845841
;-------------------------------------------------------------------------------

0 commit comments

Comments
 (0)