added PAL/NTSC detection

This commit is contained in:
FeralChild64 committed 2019-08-07 21:20:05 +02:00
1 parent 7bc76670cd
commit 1feef6abdb
4 files changed
+47 -10

No files matched your search

+11 -3
View File
@@ -17,6 +17,14 @@ startup_banner:
`TARGET_HOOK_BANNER
;; Print PAL/NTSC
ldx #30 ; NTSC
lda PALNTSC
beq +
ldx #31 ; PAL
*
jsr print_packed_message
;; Work out free bytes, and display
jsr basic_do_new
lda basic_top_of_memory_ptr+0
@@ -26,7 +34,7 @@ startup_banner:
lda basic_top_of_memory_ptr+1
sbc basic_end_of_text_ptr+1
jsr print_integer
jsr print_integer
lda #$20
jsr JCHROUT
@@ -37,8 +45,8 @@ startup_banner:
;; jump into warm start loop
jmp basic_warm_start
startup_message:
;; Clear the screen
.byte $93