PAL/NTSC display moved back to BASIC, reuses string compression

This commit is contained in:
FeralChild64 committed 2020-06-21 22:35:46 +02:00
1 parent 92fd4552c4
commit 20ce3b5405
12 files changed
+27 -68

No files matched your search

-1
View File
@@ -128,7 +128,6 @@
#define CONFIG_BANNER_FANCY
// #define CONFIG_BANNER_BRAND
// #define CONFIG_SHOW_FEATURES
// #define CONFIG_SHOW_PAL_NTSC
// Debug options
-1
View File
@@ -126,7 +126,6 @@
#define CONFIG_BANNER_FANCY
// #define CONFIG_BANNER_BRAND
#define CONFIG_SHOW_FEATURES
#define CONFIG_SHOW_PAL_NTSC
// Debug options
-1
View File
@@ -126,7 +126,6 @@
// #define CONFIG_BANNER_FANCY
#define CONFIG_BANNER_BRAND
// #define CONFIG_SHOW_FEATURES
// #define CONFIG_SHOW_PAL_NTSC
// Debug options
-1
View File
@@ -126,7 +126,6 @@
// #define CONFIG_BANNER_FANCY
// #define CONFIG_BANNER_BRAND
#define CONFIG_SHOW_FEATURES
#define CONFIG_SHOW_PAL_NTSC
// Debug options
-1
View File
@@ -126,7 +126,6 @@
#define CONFIG_BANNER_FANCY
// #define CONFIG_BANNER_BRAND
#define CONFIG_SHOW_FEATURES
#define CONFIG_SHOW_PAL_NTSC
// Debug options
-4
View File
@@ -47,10 +47,6 @@
.label print_features = KERNAL().print_features
#endif
#if CONFIG_SHOW_PAL_NTSC
.label print_pal_ntsc = KERNAL().print_pal_ntsc
#endif
#if CONFIG_TAPE_HEAD_ALIGN
.label tape_head_align = KERNAL().tape_head_align
#endif
+3 -15
View File
@@ -17,7 +17,7 @@ initmsg_real:
#endif
// Clear the screen first, some cartridges (like IEEE-488) leeave a mess on the screen
// Clear the screen first, some cartridges (like IEEE-488) are leaving a mess on the screen
lda #147
jsr JCHROUT
@@ -55,16 +55,10 @@ initmsg_real:
ldx #$05
#endif
ldy #$00
#if CONFIG_SHOW_PAL_NTSC && CONFIG_SHOW_FEATURES
#if CONFIG_SHOW_FEATURES
jsr plot_set
jsr print_features
jmp print_pal_ntsc
#elif CONFIG_SHOW_PAL_NTSC
jsr plot_set
jmp print_pal_ntsc
#elif CONFIG_SHOW_FEATURES
jsr plot_set
jmp print_features
#else
jmp plot_set
#endif
@@ -115,16 +109,10 @@ initmsg_real:
ldx #$05
#endif
ldy #$00
#if CONFIG_SHOW_PAL_NTSC && CONFIG_SHOW_FEATURES
#if CONFIG_SHOW_FEATURES
jsr plot_set
jsr print_features
jmp print_pal_ntsc
#elif CONFIG_SHOW_PAL_NTSC
jsr plot_set
jmp print_pal_ntsc
#elif CONFIG_SHOW_FEATURES
jsr plot_set
jmp print_features
#else
jmp plot_set
#endif
+21
View File
@@ -0,0 +1,21 @@
// #LAYOUT# STD * #TAKE
// #LAYOUT# M65 BASIC_1 #TAKE
// #LAYOUT# X16 BASIC_0 #TAKE
// #LAYOUT# * * #IGNORE
//
// Print video system on startup banner
//
#if CONFIG_SHOW_FEATURES
print_pal_ntsc:
ldx #IDX__STR_NTSC
lda TVSFLG
beq !+
ldx #IDX__STR_PAL
!:
jmp print_packed_misc_str
#endif // CONFIG_SHOW_FEATURES
-17
View File
@@ -26,11 +26,6 @@
#endif
#endif
#if CONFIG_SHOW_PAL_NTSC
.label __MSG_KERNAL_PAL = __msg_kernalpal - __msg_kernal_first
.label __MSG_KERNAL_NTSC = __msg_kernalntsc - __msg_kernal_first
#endif
#if CONFIG_PANIC_SCREEN
.label __MSG_KERNAL_PANIC = __msg_kernalpanic - __msg_kernal_first
.label __MSG_KERNAL_PANIC_ROM_MISMATCH = __msg_kernalpanic_rom_mismatch - __msg_kernal_first
@@ -93,18 +88,6 @@ __msg_kernaloksearching:
#endif
#if CONFIG_SHOW_PAL_NTSC
__msg_kernalpal:
.text "PAL"
.byte $80 + $0D // end of string mark + return
__msg_kernalntsc:
.text "NTSC"
.byte $80 + $0D // end of string mark + return
#endif // CONFIG_SHOW_PAL_NTSC
#if CONFIG_PANIC_SCREEN
__msg_kernalpanic:
-20
View File
@@ -1,20 +0,0 @@
// #LAYOUT# STD * #TAKE
// #LAYOUT# * KERNAL_0 #TAKE
// #LAYOUT# * * #IGNORE
//
// Print video system on startup banner
//
#if CONFIG_SHOW_PAL_NTSC
print_pal_ntsc:
ldx #__MSG_KERNAL_NTSC
lda TVSFLG
beq !+
ldx #__MSG_KERNAL_PAL
!:
jmp print_kernal_message
#endif // CONFIG_SHOW_PAL_NTSC