Skip to content

Commit 0de3fc2

Browse files
PeterTillemaMatt Waltz
authored andcommitted
Fix #65 (#66)
* Check if ti_Write size = 0 * Check if both are not 0 * Even faster yay
1 parent a664447 commit 0de3fc2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/fileioc/fileioc.asm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,10 @@ _Write:
485485
ld bc,(iy+6)
486486
ld hl,(iy+9)
487487
call __smulu
488+
add hl,de
489+
xor a,a
490+
sbc hl,de
491+
ret z
488492
ld (CopySize_SMC),hl \.r
489493
push hl
490494
call _GetSlotOffset_ASM \.r

0 commit comments

Comments
 (0)