Skip to content

Commit

Permalink
[BANNEX] update splash deprecate vera 0.3.3/add CPU for HELP (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
mooinglemur authored Mar 13, 2024
1 parent 7b45d71 commit 4241e92
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 3 deletions.
22 changes: 20 additions & 2 deletions bannex/help.s
Original file line number Diff line number Diff line change
Expand Up @@ -174,17 +174,35 @@ ym2151:

jsr printstring
.byte "UNKNOWN",13,0
bra final
bra cpu

ym_isopm:
jsr printstring
.byte "YM2151 (OPM)",13,0
bra final
bra cpu

ym_isopp:
jsr printstring
.byte "YM2164 (OPP)",13,0

cpu:
jsr printstring
.byte "CPU: 65C",0

sec
.byte $c2, $03 ; SEP #$03, clear carry if 65C816
bcc cpu816

cpu02:
jsr printstring
.byte "02",13,0
bra final

cpu816:
jsr printstring
.byte "816",13,0


final:
jsr printstring
.byte 13,"FOR DOCUMENTATION, SEE",13
Expand Down
20 changes: 19 additions & 1 deletion bannex/splash.s
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,22 @@ iniend:
bne @ok ; assume major version > 0 is fine
lda $9f2b
cmp #3
bcs @ok ; assume version 0.3.x or higher is okay
bcc @notok ; assume version < 0.3.x is not okay
lda $9f2c
cmp #3 ; 0.3.3 is problematic
beq @badvera
bra @ok
@notok:
stz VERA_CTRL
lda #<updatevera
ldy #>updatevera
jsr strout
bra @ok
@badvera:
stz VERA_CTRL
lda #<badvera
ldy #>badvera
jsr strout
@ok:
stz VERA_CTRL
plp
Expand Down Expand Up @@ -287,3 +297,11 @@ updatevera:
.byte "LATER ROMS MAY NOT BOOT WITH THE",13
.byte "CURRENT VERA VERSION.",13
.byte 13,"USE THE HELP COMMAND FOR FIRMWARE INFO",13,0

badvera:
.byte 13,"YOUR VERA'S FIRMWARE VERSION IS KNOWN",13
.byte "TO HAVE VISUAL GLITCHES. PLEASE CHECK",13
.byte "FOR A VERSION NEWER THAN 0.3.3, OR",13
.byte "DOWNGRADE TO VERSION 0.3.2.",13
.byte "RELEASES: HTTPS://GITHUB.COM/X16COMMUNITY/VERA-MODULE/RELEASES/",13
.byte 13,"USE THE HELP COMMAND FOR FIRMWARE INFO",13,0

0 comments on commit 4241e92

Please sign in to comment.