various LOAD improvements

This commit is contained in:
FeralChild64 committed 2019-11-01 13:10:39 +01:00
1 parent e145bb6c86
commit 982b287e92
8 files changed
+232 -64

No files matched your search

+10 -2
View File
@@ -4,7 +4,7 @@
//
// On NTSC this means 1023 cycles (slightly less on PAL, but we have to be sure).
// We can't count on badlines, as the screen might be disabled.
// Delay here is implemeented using VIC-II raster register. Since one raster is
// Delay here is implemented using VIC-II raster register. Since one raster is
// 63 cycles, we need at least 17 full rasters to be 100% sure we wait enough
@@ -12,7 +12,15 @@
iec_wait1ms:
ldx #18 // we probably won't start with the beginning of raster
#endif // CONFIG_IEC
#if CONFIG_IEC || CONFIG_TAPE_TURBO || CONFIG_TAPE_NORMAL
wait_x_bars: // additional entry point for tape support
// has to preserve .Y and put .X to 0
lda VIC_RASTER
!:
cmp VIC_RASTER
@@ -24,4 +32,4 @@ iec_wait1ms:
rts
#endif // CONFIG_IEC
#endif // CONFIG_IEC || CONFIG_TAPE_TURBO || CONFIG_TAPE_NORMAL