diff --git a/Apple2/Driver.lst b/Apple2/Driver.lst index 966d058..fa96aad 100644 --- a/Apple2/Driver.lst +++ b/Apple2/Driver.lst @@ -1,4 +1,4 @@ -ca65 V2.19 - Git 59c58ac +ca65 V2.19 - Git 59c58acb Main file : Driver.asm Current file: Driver.asm diff --git a/Apple2/Firmware.asm b/Apple2/Firmware.asm index cdd4ee7..53b2cc9 100644 --- a/Apple2/Firmware.asm +++ b/Apple2/Firmware.asm @@ -11,7 +11,6 @@ IOError = $27 NoDevice = $28 WriteProtect = $2B -SlotDrive = $50 InputByte = $c08e OutputByte = $c08d InputFlags = $c08b @@ -52,15 +51,6 @@ Boot: sta BufferHi jsr Driver ;get the block -; lda #$00 ;block 1 -; sta BlockLo -; sta BlockHi -; sta BufferLo ;buffer at $A00 -; lda #$0A -; sta BufferHi -; jsr Driver ;get the block - -; ldx #sdrive ;set up for slot n jmp $801 ;execute the block ;; @@ -170,7 +160,7 @@ waitRead: lda InputFlags,x rol bcs waitRead - lda InputByte + lda InputByte,x pha lda #$0f ;set all flags high sta OutputFlags,x diff --git a/Apple2/Firmware.bin b/Apple2/Firmware.bin index 23f5cbc..7d55171 100644 Binary files a/Apple2/Firmware.bin and b/Apple2/Firmware.bin differ diff --git a/Apple2/Firmware_27256_EPROM.bin b/Apple2/Firmware_27256_EPROM.bin index 0b109d7..01e9c55 100644 Binary files a/Apple2/Firmware_27256_EPROM.bin and b/Apple2/Firmware_27256_EPROM.bin differ diff --git a/RaspberryPi/Driver.go b/RaspberryPi/Driver.go index 0d906a5..c0e2acf 100644 --- a/RaspberryPi/Driver.go +++ b/RaspberryPi/Driver.go @@ -103,7 +103,12 @@ func handleReadBlockCommand(file *os.File) { file.ReadAt(buffer, int64(block)*512) //dumpBlock(buffer) - readBlock(buffer) + err := readBlock(buffer) + if err == nil { + fmt.Printf("Read block completed\n") + } else { + fmt.Printf("Failed to read block\n") + } } func handleWriteBlockCommand(file *os.File) { @@ -119,6 +124,7 @@ func handleWriteBlockCommand(file *os.File) { writeBlock(buffer) file.WriteAt(buffer, int64(block)*512) file.Sync() + fmt.Printf("Write block completed\n") } func handleExecCommand() { @@ -142,6 +148,7 @@ func handleExecCommand() { } func handleGetTimeCommand() { + fmt.Printf("Sending date/time...\n") /* 49041 ($BF91) 49040 ($BF90) 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 @@ -173,6 +180,7 @@ func handleGetTimeCommand() { writeByte(bf91) writeByte(bf92) writeByte(bf93) + fmt.Printf("Send time complete\n") } func readBlock(buffer []byte) error {