PAL/NTSC display is now optional
This commit is contained in:
1 parent
3ca8c0ead5
commit
8339e36324
14 files changed
+72
-25
No files matched your search
@@ -12,6 +12,11 @@
|
||||
.label __MSG_KERNAL_FROM_HEX = __kernal_message_from_hex - __kernal_messages_start
|
||||
.label __MSG_KERNAL_TO_HEX = __kernal_message_to_hex - __kernal_messages_start
|
||||
|
||||
#if CONFIG_BANNER_PAL_NTSC
|
||||
.label __MSG_KERNAL_PAL = __kernal_message_pal - __kernal_messages_start
|
||||
.label __MSG_KERNAL_NTSC = __kernal_message_ntsc - __kernal_messages_start
|
||||
#endif
|
||||
|
||||
|
||||
__kernal_messages_start:
|
||||
|
||||
@@ -42,3 +47,15 @@ __kernal_message_from_hex:
|
||||
__kernal_message_to_hex:
|
||||
.text " TO "
|
||||
.byte $80 + $24 // end of string mark + '$'
|
||||
|
||||
#if CONFIG_BANNER_PAL_NTSC
|
||||
|
||||
__kernal_message_pal:
|
||||
.text "PAL,"
|
||||
.byte $80 + $20 // end of string mark + space
|
||||
|
||||
__kernal_message_ntsc:
|
||||
.text "NTSC,"
|
||||
.byte $80 + $20 // end of string mark + space
|
||||
|
||||
#endif // CONFIG_BANNER_PAL_NTSC
|
||||
@@ -0,0 +1,17 @@
|
||||
|
||||
//
|
||||
// Print video system on startup banner
|
||||
//
|
||||
|
||||
#if CONFIG_BANNER_PAL_NTSC
|
||||
|
||||
print_pal_ntsc:
|
||||
|
||||
ldx #__MSG_KERNAL_NTSC
|
||||
lda TVSFLG
|
||||
beq !+
|
||||
ldx #__MSG_KERNAL_PAL
|
||||
!:
|
||||
jmp print_kernal_message
|
||||
|
||||
#endif // CONFIG_BANNER_PAL_NTSC
|
||||
Reference in new issue
Block a user