mirror of
https://github.com/tjboldt/Apple2-IO-RPi.git
synced 2025-02-18 00:30:44 +00:00
Fix firmware missing x
This commit is contained in:
parent
278425d8d3
commit
7602dae70a
@ -1,4 +1,4 @@
|
|||||||
ca65 V2.19 - Git 59c58ac
|
ca65 V2.19 - Git 59c58acb
|
||||||
Main file : Driver.asm
|
Main file : Driver.asm
|
||||||
Current file: Driver.asm
|
Current file: Driver.asm
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@ IOError = $27
|
|||||||
NoDevice = $28
|
NoDevice = $28
|
||||||
WriteProtect = $2B
|
WriteProtect = $2B
|
||||||
|
|
||||||
SlotDrive = $50
|
|
||||||
InputByte = $c08e
|
InputByte = $c08e
|
||||||
OutputByte = $c08d
|
OutputByte = $c08d
|
||||||
InputFlags = $c08b
|
InputFlags = $c08b
|
||||||
@ -52,15 +51,6 @@ Boot:
|
|||||||
sta BufferHi
|
sta BufferHi
|
||||||
jsr Driver ;get the block
|
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
|
jmp $801 ;execute the block
|
||||||
|
|
||||||
;;
|
;;
|
||||||
@ -170,7 +160,7 @@ waitRead:
|
|||||||
lda InputFlags,x
|
lda InputFlags,x
|
||||||
rol
|
rol
|
||||||
bcs waitRead
|
bcs waitRead
|
||||||
lda InputByte
|
lda InputByte,x
|
||||||
pha
|
pha
|
||||||
lda #$0f ;set all flags high
|
lda #$0f ;set all flags high
|
||||||
sta OutputFlags,x
|
sta OutputFlags,x
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -103,7 +103,12 @@ func handleReadBlockCommand(file *os.File) {
|
|||||||
|
|
||||||
file.ReadAt(buffer, int64(block)*512)
|
file.ReadAt(buffer, int64(block)*512)
|
||||||
//dumpBlock(buffer)
|
//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) {
|
func handleWriteBlockCommand(file *os.File) {
|
||||||
@ -119,6 +124,7 @@ func handleWriteBlockCommand(file *os.File) {
|
|||||||
writeBlock(buffer)
|
writeBlock(buffer)
|
||||||
file.WriteAt(buffer, int64(block)*512)
|
file.WriteAt(buffer, int64(block)*512)
|
||||||
file.Sync()
|
file.Sync()
|
||||||
|
fmt.Printf("Write block completed\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleExecCommand() {
|
func handleExecCommand() {
|
||||||
@ -142,6 +148,7 @@ func handleExecCommand() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func handleGetTimeCommand() {
|
func handleGetTimeCommand() {
|
||||||
|
fmt.Printf("Sending date/time...\n")
|
||||||
/* 49041 ($BF91) 49040 ($BF90)
|
/* 49041 ($BF91) 49040 ($BF90)
|
||||||
|
|
||||||
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
|
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(bf91)
|
||||||
writeByte(bf92)
|
writeByte(bf92)
|
||||||
writeByte(bf93)
|
writeByte(bf93)
|
||||||
|
fmt.Printf("Send time complete\n")
|
||||||
}
|
}
|
||||||
|
|
||||||
func readBlock(buffer []byte) error {
|
func readBlock(buffer []byte) error {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user