mirror of
https://github.com/irmen/prog8.git
synced 2025-08-15 14:27:37 +00:00
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:
@@ -14,10 +14,12 @@ diskio {
|
|||||||
ubyte @shared drivenumber = 8 ; user programs can set this to the drive number they want to load/save to!
|
ubyte @shared drivenumber = 8 ; user programs can set this to the drive number they want to load/save to!
|
||||||
|
|
||||||
sub reset_read_channel() {
|
sub reset_read_channel() {
|
||||||
|
cbm.CLRCHN()
|
||||||
void cbm.CHKIN(READ_IO_CHANNEL)
|
void cbm.CHKIN(READ_IO_CHANNEL)
|
||||||
}
|
}
|
||||||
|
|
||||||
sub reset_write_channel() {
|
sub reset_write_channel() {
|
||||||
|
cbm.CLRCHN()
|
||||||
cbm.CHKOUT(WRITE_IO_CHANNEL)
|
cbm.CHKOUT(WRITE_IO_CHANNEL)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user