Skip to content

Commit

Permalink
split out branding
Browse files Browse the repository at this point in the history
  • Loading branch information
a2-4am committed Nov 13, 2023
1 parent f9633db commit 2f206df
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 39 deletions.
34 changes: 34 additions & 0 deletions src/4cade.branding.a
Original file line number Diff line number Diff line change
@@ -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"
}
53 changes: 15 additions & 38 deletions src/4cade.init.a
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,20 @@
jsr ROM_NORMAL
jsr ROM_IN0
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
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 -
jsr PrintBranding

; proboothd duplicates the above code and jumps here,
; so if you make any changes before this comment, you
Expand Down Expand Up @@ -75,17 +76,6 @@
; bit 7 = 1 if joystick
; 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)
lda zpMachineStatus
and #IS_IIGS
Expand Down Expand Up @@ -297,21 +287,8 @@ FoundMockingboardCallback
ora #$B0
jmp ROM_COUT

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"
}
!src "src/4cade.branding.a"

Loading64K
!byte 3
!text "64K"
Expand Down
2 changes: 1 addition & 1 deletion src/proboothd/proboothd.a
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ blockind ldy $ff
txa
bne readfile

readdone jmp $203b
readdone jmp $2036

seekread stx bloklo
sty blokhi
Expand Down

0 comments on commit 2f206df

Please sign in to comment.