Skip to content

Commit df06bf2

Browse files
grosgedruner112
authored andcommitted
Optimize ti_OpenVar/ti_Open (#118)
1 parent 12582aa commit df06bf2

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/fileioc/fileioc.asm

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,14 +365,13 @@ _Open:
365365
cp a,'r'
366366
pop hl
367367
jp nz,_ReturnNull_IX
368-
ex de,hl ; skip vat entry in archive
369-
push de
370368
push hl
369+
push de
371370
pop iy
372371
ld a,10
373372
add a,(iy+9)
374-
ld de,0
375-
ld e,a
373+
sbc hl,hl
374+
ld l,a
376375
add hl,de
377376
ex de,hl
378377
pop hl

0 commit comments

Comments
 (0)