minor JiffyDOS improovements
This commit is contained in:
1 parent
430682d9c7
commit
d77887041f
2 files changed
+9
-12
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user