From d77887041f75c02bd4cfe4491fd6425136a85ef2 Mon Sep 17 00:00:00 2001 From: FeralChild64 Date: Fri, 6 Dec 2019 19:20:38 +0100 Subject: [PATCH] minor JiffyDOS improovements --- c64/kernal/iec_fast/load_jiffydos.s | 17 +++++++---------- c64/kernal/screen/screen_off.s | 4 ++-- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/c64/kernal/iec_fast/load_jiffydos.s b/c64/kernal/iec_fast/load_jiffydos.s index f402329f..51bf3bf3 100644 --- a/c64/kernal/iec_fast/load_jiffydos.s +++ b/c64/kernal/iec_fast/load_jiffydos.s @@ -3,7 +3,8 @@ // JiffyDOS protocol support for IEC - optimized load loop // -// XXX does not work yet #define CONFIG_IEC_BLANK_SCREEN +// XXX option does not work yet +// #define CONFIG_IEC_BLANK_SCREEN #if CONFIG_IEC_JIFFYDOS && !CONFIG_MEMORY_MODEL_60K @@ -54,24 +55,20 @@ load_jiffydos_loop: // Wait until device is ready to send (releases CLK) jsr iec_wait_for_clk_release + // Prepare 'start sending' message + lda CIA2_PRA + and #$FF - BIT_CIA2_PRA_DAT_OUT // release + #if CONFIG_IEC_BLANK_SCREEN // Ask device to start sending bits - lda CIA2_PRA - and #$FF - BIT_CIA2_PRA_DAT_OUT // release sta CIA2_PRA #else - // Prepare 'start sending' message - lda CIA2_PRA - and #$FF - BIT_CIA2_PRA_DAT_OUT // release + // Wait for appropriate moment, ask device to start sending bits tax - - // Wait for appropriate moment jsr jiffydos_wait_line - - // Ask device to start sending bits stx CIA2_PRA // cycles: 4 #endif diff --git a/c64/kernal/screen/screen_off.s b/c64/kernal/screen/screen_off.s index cd9a0265..c8f811d8 100644 --- a/c64/kernal/screen/screen_off.s +++ b/c64/kernal/screen/screen_off.s @@ -16,10 +16,10 @@ screen_off: // To be sure there are no badlines we have to wait till the next screen, // as the bit is checked by VIC-II at the start of the frame only !: - lda VIC_SCROLY // wait for lower part of screen + lda VIC_SCROLY // wait for higher part of screen bpl !- !: - lda VIC_SCROLY // wait for screen start + lda VIC_SCROLY // wait for lower part of the screen bmi !- rts