c64 diskio: Always call CLRCHN before CHKIN/CHKOUT calls

this seems to work around a Vice emulator issue when using host filesystem disk emulation.
Fixes #156
This commit is contained in:
Irmen de Jong 2024-12-03 19:15:44 +01:00
parent 1ebfff7c7b
commit 25b1043572

View File

@ -14,10 +14,12 @@ diskio {
ubyte @shared drivenumber = 8 ; user programs can set this to the drive number they want to load/save to!
sub reset_read_channel() {
cbm.CLRCHN()
void cbm.CHKIN(READ_IO_CHANNEL)
}
sub reset_write_channel() {
cbm.CLRCHN()
cbm.CHKOUT(WRITE_IO_CHANNEL)
}