From 7e56516acc958e88d0f38d7df3fc53ba5abd4d26 Mon Sep 17 00:00:00 2001 From: Terence Boldt Date: Thu, 7 Oct 2021 00:57:30 +0100 Subject: [PATCH] Fix firmware and driver to support drive 2 --- Apple2/AT28C64B.bin | Bin 8192 -> 8192 bytes Apple2/CommandFirmware.lst | 2 +- Apple2/DriveFirmware.asm | 2 +- Apple2/DriveFirmware.lst | 4 ++-- Apple2/FileAccessFirmware.lst | 2 +- Apple2/MenuFirmware.lst | 2 +- RaspberryPi/Apple2-IO-RPi.hdv | Bin 33553920 -> 33553920 bytes .../apple2driver/handlers/readBlock.go | 3 ++- .../apple2driver/handlers/writeBlock.go | 2 +- 9 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Apple2/AT28C64B.bin b/Apple2/AT28C64B.bin index 395270e10f9d2307c2b9444951edd871956be875..00bf3da5df13f9a93b64670b2e5c7ef7b73c5b53 100644 GIT binary patch delta 54 scmZp0XmFVDk5PQ$|No5Qlm9bCS*nyWJNY)$B)Q?oXCaT$b-Ddhx{mjf+&Q-D1xFW zhT4JD1)*nhw`X^il~IjsDhtR6+fdIs-p&Kq84hS4(g&F>Z1V~q7fRS37VoA znxh3;;uo|+Yy65fXp44ej}GXFPUws-=!$OWj^EG&J<$uj(Fc9e5B(900T_ru7>pqp zieVUz5g3V47>zL)i*Xo_37CjUn2afyifNdR8JLM#n2kA@i+Pxj1^68cu?UN?1b<*D zmSH(oU?o;zHP&D))?qz1U?VnRGqzwWwqZN|#9!Efo!Eul*n_>;hy6H!gE)l4ID(@% zhT}MalQ@OHaT;fE7Uyst|KI{H;u0?73a;WBuHy!7;udb>4({R}?&AR-;t?L>37+B^ zp5q1n#Y?=xYrMf*yu*8Zz(;(-XMDj|d_%}6-u^h4uqK=dZvssO6VXI6kxdj6)kHJV zO$-y$#4@o>9P^!tYvP&sCV~0hBs7UkVw1!qHOWkJ6J-9sWJ*t|Olp(Hq&4Zx4<^0I zU^1FaCbP+6vYKoryZO=NFgZ;wliTDmc}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P4WG-_0Lpl9_C#n5kx(nQms7Kg~=t%lu_# zn>l8#nP=vk1!kdHWEPtxW~o_bmYWr3rCDWGn>A*wS!dRp4Q8X+WHy^EW~}W)*=P2f1LmMPWDc7n=5KS<95ctw3G^<<^Ta$g&&+f4!n`!E%xm+;yfyF4d-K73 VG@s08^Tm8M-vV~=_X`NP@*gSFbBF){ diff --git a/RaspberryPi/apple2driver/handlers/readBlock.go b/RaspberryPi/apple2driver/handlers/readBlock.go index 8d0fa80..c6399a2 100644 --- a/RaspberryPi/apple2driver/handlers/readBlock.go +++ b/RaspberryPi/apple2driver/handlers/readBlock.go @@ -17,6 +17,7 @@ func ReadBlockCommand(drive1 *os.File, drive2 *os.File) { if !oldFirmware { driveUnit, err = a2io.ReadByte() + fmt.Printf("Drive unit: %0X\n", driveUnit) if err != nil { fmt.Printf("Drive unit not sent, assuming older firmware") @@ -26,7 +27,7 @@ func ReadBlockCommand(drive1 *os.File, drive2 *os.File) { file := drive1 - if driveUnit >= 8 { + if driveUnit >= 128 { file = drive2 } diff --git a/RaspberryPi/apple2driver/handlers/writeBlock.go b/RaspberryPi/apple2driver/handlers/writeBlock.go index 175bb2a..c5b60ba 100644 --- a/RaspberryPi/apple2driver/handlers/writeBlock.go +++ b/RaspberryPi/apple2driver/handlers/writeBlock.go @@ -24,7 +24,7 @@ func WriteBlockCommand(drive1 *os.File, drive2 *os.File) { file := drive1 - if driveUnit >= 8 { + if driveUnit >= 128 { file = drive2 }