diff --git a/Makefile b/Makefile index 90edc0dbe..715f51b31 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/src/4cade.init.a b/src/4cade.init.a index c1e247553..9b4b31626 100644 --- a/src/4cade.init.a +++ b/src/4cade.init.a @@ -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"