show build number on loading screen

This commit is contained in:
4am 2019-10-13 21:38:54 -04:00
parent 61303e3483
commit f1bcdb32fc
2 changed files with 45 additions and 3 deletions

View File

@ -91,8 +91,8 @@ dsk: md asm
asm: md asmlauncher asmfx asmprelaunch
asmlauncher:
$(ACME) src/4cade.a 2>build/relbase.log
$(ACME) -r build/4cade.lst -DRELBASE=`cat build/relbase.log | grep "RELBASE =" | cut -d"=" -f2 | cut -d"(" -f2 | cut -d")" -f1` src/4cade.a
$(ACME) -DBUILDNUMBER=`git rev-list --count HEAD` src/4cade.a 2>build/relbase.log
$(ACME) -r build/4cade.lst -DBUILDNUMBER=`git rev-list --count HEAD` -DRELBASE=`cat build/relbase.log | grep "RELBASE =" | cut -d"=" -f2 | cut -d"(" -f2 | cut -d")" -f1` src/4cade.a
asmfx:
@for f in src/fx/*.a; do grep "^\!to" $${f} >/dev/null && $(ACME) $${f} >> build/log; done

View File

@ -83,6 +83,17 @@ NotGS clc
dey
bne -
!ifndef RELEASE {
lda #$D6
sta $28
lda #$07
sta $29
lda LoaderBuild
ldx LoaderBuild+1
ldy #0
jsr PrintAsDecimal
}
bit zpMachineStatus
bvc ++
bpl +
@ -170,9 +181,17 @@ TOTAL
!text "T O T A L"
REPLAY
!text "R E P L A Y"
!ifndef RELEASE {
LoaderVersion
!byte 5
!text "build"
LoaderBuild
!word BUILDNUMBER
} else {
LoaderVersion
!byte 12
!text "v3.0-alpha.1"
!text "v3.0-alpha.2"
}
Loader64K
!byte 3
!text "64K"
@ -186,6 +205,29 @@ Loader128KAndJoystick
!byte 15
!text "joystick + 128K"
PrintAsDecimal
jsr $FF4A
-- lda #$00
clv
ldx #$18
- cmp #$05
bcc +
sbc #$85
sec
+ rol $45
rol $46
rol $47
rol
dex
bne -
pha
lda #$FD
pha
lda #$E1
pha
bvs --
rts
!source "src/hw.accel.a"
!source "src/parse.games.a"