paranoid, be sure to not kill carry

This commit is contained in:
Irmen de Jong 2021-04-06 23:55:20 +02:00
parent bc726c6334
commit d116eb7655

View File

@ -365,6 +365,7 @@ io_error:
c64.SETNAM(string.length(filenameptr), filenameptr) c64.SETNAM(string.length(filenameptr), filenameptr)
c64.SETLFS(1, drivenumber, 0) c64.SETLFS(1, drivenumber, 0)
uword end_address = address + size uword end_address = address + size
first_byte = 0 ; result var reuse
%asm {{ %asm {{
lda address lda address
@ -381,7 +382,6 @@ io_error:
plp plp
}} }}
first_byte = 0 ; result var reuse
if_cc if_cc
first_byte = c64.READST()==0 first_byte = c64.READST()==0