From 78d0b86b2f0aaaa9f82682448e2c6b6c61959585 Mon Sep 17 00:00:00 2001 From: Terence Boldt Date: Mon, 7 Feb 2022 22:01:06 -0500 Subject: [PATCH] Add version info --- .github/ISSUE_TEMPLATE/bug_report.yml | 28 +++++++++++-- Apple2/AT28C64B.bin | Bin 8192 -> 8192 bytes Apple2/MenuFirmware.asm | 9 ++--- Apple2/MenuFirmware.lst | 46 +++++++++++----------- Apple2/RPi.Command.bin | Bin 489 -> 487 bytes Apple2/RPi.Command.lst | 10 ++--- RaspberryPi/Apple2-IO-RPi.hdv | Bin 33553920 -> 33553920 bytes RaspberryPi/apple2driver/driver.go | 3 +- RaspberryPi/apple2driver/handlers/exec.go | 10 +++++ RaspberryPi/apple2driver/info/version.go | 9 +++++ 10 files changed, 75 insertions(+), 40 deletions(-) create mode 100644 RaspberryPi/apple2driver/info/version.go diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index b2e489d..5107404 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -22,12 +22,32 @@ body: label: Hardware Version description: What version of the hardware are you running? options: - - Fourth Prototype (Purchased from Terence) - - Fourth Prototype (Purchased from third party) - - Fourth Prototype (Self-assembled) - Fifth Prototype (Purchased from Terence) - - Fifth Prototype (Purchased from third party) - Fifth Prototype (Self-assembled) + - Fifth Prototype (Purchased from third party) + - Fourth Prototype (Purchased from Terence) + - Fourth Prototype (Self-assembled) + - Fourth Prototype (Purchased from third party) + validations: + required: true + - type: dropdown + id: firmware-version + attributes: + label: Firmware Version + description: What version of the firmware are you running? (shown on boot screen) + options: + - 000F + - Older (not shown on boot, pre-2022-Feb-07) + validations: + required: true + - type: dropdown + id: driver-version + attributes: + label: Driver Version + description: What version of the driver are you running? Check with `RPI a2version` + options: + - 0022 + - Older (error calling RPI a2version, pre-2022-Feb-07) validations: required: true - type: dropdown diff --git a/Apple2/AT28C64B.bin b/Apple2/AT28C64B.bin index 41aaea0a8d695a1edd41f4445e6ad6507c35a74a..5c5901c9458d96fd53882bd1bca73e20a7e6e605 100644 GIT binary patch delta 243 zcmZp0XmHq|Ey1{DvW`T@jnj6_G%<+8W|WF=mH7D$>$`LCjXEy z25FEaUV|i9gB0-^q`(@aiPsiRwf;GqyuR#v1L7rF*9C~_s!0=}m F0RT(DXS4tS diff --git a/Apple2/MenuFirmware.asm b/Apple2/MenuFirmware.asm index 11abf23..63e55b8 100644 --- a/Apple2/MenuFirmware.asm +++ b/Apple2/MenuFirmware.asm @@ -159,15 +159,12 @@ finishRead: end: rts -.repeat 187-(a6K|x`3DX0U6g3_rp0s>06 zAWGQMjg(3|e81V9cmAHbp!%qc*{x=Iw3lFP5D0D?=ploDdd3t1YU_|=b=s=-Bbo#;QK#8!3lqShh zQBf)B*P{b54q~z##AFU)vmC@`4&t&L#AOcRvmC@{4id5)BxDW}vm7L54wAAMth}BS z2+NTkTs@F6JfnI5!N`Vt5Q0!-M;LP8UfhSA$c6in8+j0p2k;>BA|LXj01BcI3Zn>$ zq8N(fAw=L|lt4+8LTNmLGI$h^;c=8jB+8*YDj*6K5setcA`bCLKq8Wmj3-bDPogra z;3-r^HB?6pJdG68#51Uc+NguNcoxs09_ph38ln*z<9WP*CTNNm(G1P;5?Y`oTA?-C zpe@>=Jzho!bVMg~Mi;z-SMeHNM^|)1cl1C{^uinHjXro2Z=o;x;cdKw{uqE%48$M| z#t;m}Fbu~CjKnC6#=CeAV=xx);{$w%G>pS|Oh7s&;v;;FNtldJ@F}KXDyCsNW?&{} zVK(MqF6LoAKEvl&fQ49u#aM!+Scc{J0xPf*tMDaOV-42gD}0T0SdR_Zh)vjxE!c`} z*p408iCy>xyRiq~VlTeK_t=O1IDmur0YBm={ET1lD}KZ8IE2GEf}=Qw<2ZqnIEB+V zgR?k?^Y{Z7a1obq8CUQp{=(n5ifg!z8@P#ExQ&01fjgu5_s7Bnn{4JD6JkP5b`xfD zn0w8ACa1||?l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%T*^E$BpZw{&m@Bjb+ diff --git a/RaspberryPi/apple2driver/driver.go b/RaspberryPi/apple2driver/driver.go index 7a60955..9607892 100644 --- a/RaspberryPi/apple2driver/driver.go +++ b/RaspberryPi/apple2driver/driver.go @@ -17,6 +17,7 @@ import ( "github.com/tjboldt/Apple2-IO-RPi/RaspberryPi/apple2driver/a2io" "github.com/tjboldt/Apple2-IO-RPi/RaspberryPi/apple2driver/handlers" + "github.com/tjboldt/Apple2-IO-RPi/RaspberryPi/apple2driver/info" ) const resetCommand = 0 @@ -33,7 +34,7 @@ const shellCommand = 9 func main() { drive1, drive2 := getDriveFiles() - fmt.Printf("Starting Apple II RPi...\n") + fmt.Printf("Starting Apple II RPi v%s...\n", info.Version) comm := a2io.A2Gpio{} diff --git a/RaspberryPi/apple2driver/handlers/exec.go b/RaspberryPi/apple2driver/handlers/exec.go index 4f1f0f0..6388361 100644 --- a/RaspberryPi/apple2driver/handlers/exec.go +++ b/RaspberryPi/apple2driver/handlers/exec.go @@ -14,6 +14,8 @@ import ( "os" "os/exec" "strings" + + "github.com/tjboldt/Apple2-IO-RPi/RaspberryPi/apple2driver/info" ) var forceLowercase = false @@ -46,6 +48,10 @@ func ExecCommand() { comm.WriteString("Working directory set\r") return } + if linuxCommand == "a2version" { + a2version() + return + } if linuxCommand == "a2help" { a2help() return @@ -181,6 +187,10 @@ func getStdin(stdin io.WriteCloser, done chan bool, inputComplete chan bool, use } } +func a2version() { + comm.WriteString("\rVersion: " + info.Version + "\r") +} + func a2help() { comm.WriteString("\r" + "Built-in commands:\r" + diff --git a/RaspberryPi/apple2driver/info/version.go b/RaspberryPi/apple2driver/info/version.go new file mode 100644 index 0000000..fa9c573 --- /dev/null +++ b/RaspberryPi/apple2driver/info/version.go @@ -0,0 +1,9 @@ +// Copyright Terence J. Boldt (c)2020-2022 +// Use of this source code is governed by an MIT +// license that can be found in the LICENSE file. + +// This file is used for storing the version number + +package info + +const Version = "0022"