added JiffyDOS byte read error detection
This commit is contained in:
1 parent
a76b3e21b0
commit
dad5d21945
3 files changed
+25
-1
No files matched your search
@@ -86,8 +86,11 @@ jiffydos_rx_byte:
|
||||
// If CLK line active - success
|
||||
bvc jiffydos_rx_byte_end
|
||||
|
||||
// XXX the DATA line can probably be used to distinguish between file not found error and normal stream EOI
|
||||
// EOI or error, released DATA (highest byte set to 1) means error - see protocol analysis by Michael Steil, step R7a
|
||||
lda CIA2_PRA
|
||||
bmi jiffydos_rx_byte_error
|
||||
|
||||
// EOI - no error
|
||||
jsr kernalstatus_EOI
|
||||
|
||||
// FALLTROUGH
|
||||
@@ -109,5 +112,10 @@ jiffydos_rx_byte_end:
|
||||
// End byte reception
|
||||
jmp iec_rx_end
|
||||
|
||||
jiffydos_rx_byte_error:
|
||||
|
||||
jsr kernalerror_IEC_TIMEOUT_READ
|
||||
bcs jiffydos_rx_byte_end // branch always
|
||||
|
||||
|
||||
#endif // CONFIG_IEC_JIFFYDOS
|
||||
Reference in new issue
Block a user