more work on MEGA65 startup info

This commit is contained in:
FeralChild64 committed 2020-08-23 16:59:37 +02:00
1 parent 8bd0544e87
commit c388e8e64c
6 files changed
+79 -18

No files matched your search

-9
View File
@@ -53,13 +53,4 @@ rainbow_logo:
.byte SET_COLOR_0, $00
}
#if !CONFIG_BRAND_CUSTOM_BUILD
pre_revision_string:
.text "RELEASE "
.byte $00
#endif // no CONFIG_BRAND_CUSTOM_BUILD
#endif
+15 -1
View File
@@ -37,7 +37,14 @@ cmd_sysinfo:
ldy #>rom_revision_basic_string
jsr STROUT
// Print board ID
jsr print_return
jsr print_return
// FALLTROUGH
print_sysinfo_banner:
// Print board type
ldx #IDX__STR_SI_HDR_HW
jsr print_packed_misc_str
@@ -52,8 +59,15 @@ cmd_sysinfo:
ldy #(__cmd_sysinfo_hw_ids_end - cmd_sysinfo_hw_ids)
!:
ldx cmd_sysinfo_hw_str, y
phx
jsr print_packed_misc_str
plx
cpx #IDX__STR_SI_HW_XX
bne !+
lda MISC_BOARDID
jsr print_hex_byte
!:
// Print video system information
ldx #IDX__STR_SI_HDR_VID
+4
View File
@@ -25,6 +25,10 @@
.label JREADST = KERNAL_0.JREADST
.label SELDEV = KERNAL_0.SELDEV
.label M65_ISMODE65 = KERNAL_0.M65_ISMODE65
.label M65_SETWIN_XY = KERNAL_0.M65_SETWIN_XY
.label M65_SETWIN_WH = KERNAL_0.M65_SETWIN_WH
.label M65_SETWIN_Y = KERNAL_0.M65_SETWIN_Y
.label M65_SETWIN_N = KERNAL_0.M65_SETWIN_N
.label plot_set = KERNAL_0.plot_set
.label init_oldtxt = BASIC_0.init_oldtxt
.label tmpstr_free_all_reset = BASIC_0.tmpstr_free_all_reset
+49 -2
View File
@@ -10,15 +10,22 @@
INITMSG:
// Clear the screen first, some cartridges (like IEEE-488) are leaving a mess on the screen
lda #147
jsr JCHROUT
// Display main banner
lda #<startup_banner
ldy #>startup_banner
jsr STROUT
// Display additional information, depending on the mode
jsr M65_ISMODE65
bcc !+ // XXX for MEGA65 native mode, display something else instead
bcc !+
// Legacy mode
ldx #$02
ldy #$21
@@ -27,7 +34,8 @@ INITMSG:
lda #<startup_banner_legacy
ldy #>startup_banner_legacy
jsr STROUT
!:
// Legacy mode - display revision and available memory
ldx #$05
ldy #$00
@@ -42,3 +50,42 @@ INITMSG:
jsr plot_set
jsr initmsg_bytes_free
ldx #$07
ldy #$00
jmp plot_set
!:
// Native mode
ldx #48
ldy #0
jsr M65_SETWIN_XY
ldx #32
ldy #7
jsr M65_SETWIN_WH
jsr M65_SETWIN_Y
jsr print_sysinfo_banner
jsr M65_SETWIN_N
// Native mode - display revision and available memory
ldx #$05
ldy #$00
jsr plot_set
ldx #IDX__STR_PRE_REV
jsr print_packed_misc_str
lda #<rom_revision_basic_string
ldy #>rom_revision_basic_string
jsr STROUT
jsr print_return
jsr initmsg_bytes_free
ldx #$08
ldy #$00
jmp plot_set
+2 -3
View File
@@ -73,9 +73,8 @@ initmsg_real:
ldy #$0A
jsr plot_set
lda #<pre_revision_string
ldy #>pre_revision_string
jsr STROUT
ldx #IDX__STR_PRE_REV
jsr print_packed_misc_str
lda #<rom_revision_basic_string
ldy #>rom_revision_basic_string