IEC code compatibility improvements

This commit is contained in:
FeralChild64 committed 2019-10-06 13:02:14 +02:00
1 parent 77320e2e91
commit 1480350bfb
3 files changed
+16 -8

No files matched your search

+4 -2
View File
@@ -26,7 +26,9 @@ iec_tx_byte:
iec_tx_common:
// Timing is critical here - execute on disabled IRQs
php
// The best practice would be to do PHP first, but it seems this is not
// what the original ROM does; furthermore, pushing additional bytes to
// stack can wreck autostart softwaree loading at $0100
sei
// Wait till all receivers are ready, they should all release DATA
@@ -79,7 +81,7 @@ iec_tx_common_bit_is_sent:
dex
bpl iec_tx_common_sendbit
plp
cli
// Give device time to tell if they are busy by pulling DATA
// They should do it within 1ms