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
+2 -2
View File
@@ -90,9 +90,9 @@ iec_load_loop:
jsr lvs_handle_byte_load_verify
bcs load_iec_error
// Advance pointer to data
// Advance pointer to data; it is OK if it advances past $FFFF,
// one autostart technique does exactly this
jsr lvs_advance_pointer
bcs_far lvs_wrap_around_error
// Handle STOP key; it is probably an overkill to do it
// with every byte, once per 32 bytes should be enough