common screen visibilityy handling for Turbo Tape and JiffyDOS

This commit is contained in:
FeralChild64 committed 2019-12-06 18:42:06 +01:00
1 parent aad50ee979
commit 430682d9c7
5 files changed
+61 -49

No files matched your search

-28
View File
@@ -1,28 +0,0 @@
//
// Helper routines to blank/show screen
//
#if CONFIG_TAPE_NORMAL || CONFIG_TAPE_TURBO
screen_blank:
lda VIC_SCROLY
and #($FF - $10)
sta VIC_SCROLY
rts
screen_show:
lda VIC_SCROLY
ora #$10
sta VIC_SCROLY
rts
#endif
+28
View File
@@ -0,0 +1,28 @@
//
// Helper routine to blank screen
//
#if CONFIG_TAPE_NORMAL || CONFIG_TAPE_TURBO || (CONFIG_IEC_JIFFYDOS && !CONFIG_MEMORY_MODEL_60K)
screen_off:
lda VIC_SCROLY
and #($FF - $10)
sta VIC_SCROLY
// 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
bpl !-
!:
lda VIC_SCROLY // wait for screen start
bmi !-
rts
#endif
+18
View File
@@ -0,0 +1,18 @@
//
// Helper routine to show screen
//
#if CONFIG_TAPE_NORMAL || CONFIG_TAPE_TURBO
screen_on:
lda VIC_SCROLY
ora #$10
sta VIC_SCROLY
rts
#endif