From d116eb7655774fb8cabedb81e38645238d100751 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Tue, 6 Apr 2021 23:55:20 +0200 Subject: [PATCH] paranoid, be sure to not kill carry --- compiler/res/prog8lib/diskio.p8 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/res/prog8lib/diskio.p8 b/compiler/res/prog8lib/diskio.p8 index 3faf8fb8b..2617f4466 100644 --- a/compiler/res/prog8lib/diskio.p8 +++ b/compiler/res/prog8lib/diskio.p8 @@ -365,6 +365,7 @@ io_error: c64.SETNAM(string.length(filenameptr), filenameptr) c64.SETLFS(1, drivenumber, 0) uword end_address = address + size + first_byte = 0 ; result var reuse %asm {{ lda address @@ -381,7 +382,6 @@ io_error: plp }} - first_byte = 0 ; result var reuse if_cc first_byte = c64.READST()==0