mirror of https://github.com/a2-4am/4cade.git
split out branding
This commit is contained in:
parent
f9633db15b
commit
2f206dfc91
|
@ -0,0 +1,34 @@
|
||||||
|
;license:MIT
|
||||||
|
;(c) 2018-2023 by 4am
|
||||||
|
;
|
||||||
|
|
||||||
|
PrintBranding
|
||||||
|
ldy #9
|
||||||
|
- lda TOTAL-1,y
|
||||||
|
ora #$80
|
||||||
|
sta $04B7-1,y
|
||||||
|
dey
|
||||||
|
bne -
|
||||||
|
ldy #11
|
||||||
|
- lda REPLAY-1,y
|
||||||
|
ora #$80
|
||||||
|
sta $0536-1,y
|
||||||
|
dey
|
||||||
|
bne -
|
||||||
|
rts
|
||||||
|
|
||||||
|
TOTAL
|
||||||
|
!text "T O T A L"
|
||||||
|
REPLAY
|
||||||
|
!text "R E P L A Y"
|
||||||
|
!ifndef RELEASE {
|
||||||
|
LoadingVersion
|
||||||
|
!byte 8
|
||||||
|
!text " build "
|
||||||
|
LoadingBuild
|
||||||
|
!word BUILDNUMBER
|
||||||
|
} else {
|
||||||
|
LoadingVersion
|
||||||
|
!byte 12
|
||||||
|
!text " v5.0.1"
|
||||||
|
}
|
|
@ -18,19 +18,20 @@
|
||||||
jsr ROM_NORMAL
|
jsr ROM_NORMAL
|
||||||
jsr ROM_IN0
|
jsr ROM_IN0
|
||||||
jsr ROM_PR0
|
jsr ROM_PR0
|
||||||
|
|
||||||
|
; accommodate uppercase-only machines (64K ][ and ][+ are supported)
|
||||||
|
lda ROM_MACHINEID
|
||||||
|
cmp #$A0
|
||||||
|
beq + ; Spectrum ED
|
||||||
|
cmp #$06
|
||||||
|
beq +
|
||||||
|
lda #$DF
|
||||||
|
+HIDE_NEXT_2_BYTES
|
||||||
|
+ lda #$FF
|
||||||
|
sta zpCharMask
|
||||||
|
|
||||||
; print text title in same place as graphical title will appear
|
; print text title in same place as graphical title will appear
|
||||||
ldy #9
|
jsr PrintBranding
|
||||||
- lda TOTAL-1,y
|
|
||||||
ora #$80
|
|
||||||
sta $04B7-1,y
|
|
||||||
dey
|
|
||||||
bne -
|
|
||||||
ldy #11
|
|
||||||
- lda REPLAY-1,y
|
|
||||||
ora #$80
|
|
||||||
sta $0536-1,y
|
|
||||||
dey
|
|
||||||
bne -
|
|
||||||
|
|
||||||
; proboothd duplicates the above code and jumps here,
|
; proboothd duplicates the above code and jumps here,
|
||||||
; so if you make any changes before this comment, you
|
; so if you make any changes before this comment, you
|
||||||
|
@ -75,17 +76,6 @@
|
||||||
; bit 7 = 1 if joystick
|
; bit 7 = 1 if joystick
|
||||||
; and all other bits are 0 (we'll set bit 3 after copying it to LC RAM)
|
; and all other bits are 0 (we'll set bit 3 after copying it to LC RAM)
|
||||||
|
|
||||||
; accommodate uppercase-only machines (64K ][ and ][+ are supported)
|
|
||||||
lda ROM_MACHINEID
|
|
||||||
cmp #$A0
|
|
||||||
beq + ; Spectrum ED
|
|
||||||
cmp #$06
|
|
||||||
beq +
|
|
||||||
lda #$DF
|
|
||||||
+HIDE_NEXT_2_BYTES
|
|
||||||
+ lda #$FF
|
|
||||||
sta zpCharMask
|
|
||||||
|
|
||||||
; IIgs fix for Alternate Display Mode (clear shadow page 2)
|
; IIgs fix for Alternate Display Mode (clear shadow page 2)
|
||||||
lda zpMachineStatus
|
lda zpMachineStatus
|
||||||
and #IS_IIGS
|
and #IS_IIGS
|
||||||
|
@ -297,21 +287,8 @@ FoundMockingboardCallback
|
||||||
ora #$B0
|
ora #$B0
|
||||||
jmp ROM_COUT
|
jmp ROM_COUT
|
||||||
|
|
||||||
TOTAL
|
!src "src/4cade.branding.a"
|
||||||
!text "T O T A L"
|
|
||||||
REPLAY
|
|
||||||
!text "R E P L A Y"
|
|
||||||
!ifndef RELEASE {
|
|
||||||
LoadingVersion
|
|
||||||
!byte 8
|
|
||||||
!text " build "
|
|
||||||
LoadingBuild
|
|
||||||
!word BUILDNUMBER
|
|
||||||
} else {
|
|
||||||
LoadingVersion
|
|
||||||
!byte 12
|
|
||||||
!text " v5.0.1"
|
|
||||||
}
|
|
||||||
Loading64K
|
Loading64K
|
||||||
!byte 3
|
!byte 3
|
||||||
!text "64K"
|
!text "64K"
|
||||||
|
|
|
@ -151,7 +151,7 @@ blockind ldy $ff
|
||||||
txa
|
txa
|
||||||
bne readfile
|
bne readfile
|
||||||
|
|
||||||
readdone jmp $203b
|
readdone jmp $2036
|
||||||
|
|
||||||
seekread stx bloklo
|
seekread stx bloklo
|
||||||
sty blokhi
|
sty blokhi
|
||||||
|
|
Loading…
Reference in New Issue