mirror of
https://github.com/tjboldt/Apple2-IO-RPi.git
synced 2024-06-10 16:29:34 +00:00
Revert "Avoid unwanted i/o access."
Neither the original hardware type nor the alternative hardware type have any read and write i/o port share addresses. Therefore phantom reads aren't an issue with those hardware types.
This reverts commit ae5cb754fb
.
This commit is contained in:
parent
4c2e938474
commit
0aa485762a
|
@ -17,15 +17,10 @@ XLEN = $BE52 ;length of command string-1.
|
||||||
XCNUM = $BE53 ;CI cmd no. (ext cmd - 0).
|
XCNUM = $BE53 ;CI cmd no. (ext cmd - 0).
|
||||||
PBITS = $BE54 ;Command parameter bits.
|
PBITS = $BE54 ;Command parameter bits.
|
||||||
XRETURN = $FF58 ;Known RTS instruction.
|
XRETURN = $FF58 ;Known RTS instruction.
|
||||||
|
InputByte = $c08e
|
||||||
; have 6502 absolute indexed access phantom reads
|
OutputByte = $c08d
|
||||||
; happen on page $bf to avoid unwanted i/o access
|
InputFlags = $c08b
|
||||||
IndexOffset = $8f
|
OutputFlags = $c087
|
||||||
|
|
||||||
InputByte = $c08e - IndexOffset
|
|
||||||
OutputByte = $c08d - IndexOffset
|
|
||||||
InputFlags = $c08b - IndexOffset
|
|
||||||
OutputFlags = $c087 - IndexOffset
|
|
||||||
|
|
||||||
ReadBlockCommand = $01
|
ReadBlockCommand = $01
|
||||||
WriteBlockCommand = $02
|
WriteBlockCommand = $02
|
||||||
|
@ -81,10 +76,9 @@ DetectSlot:
|
||||||
asl
|
asl
|
||||||
asl
|
asl
|
||||||
asl
|
asl
|
||||||
clc
|
|
||||||
adc #IndexOffset
|
|
||||||
tax
|
tax
|
||||||
bcc Start ;always
|
clc
|
||||||
|
bcc Start
|
||||||
nextSlot:
|
nextSlot:
|
||||||
dex
|
dex
|
||||||
bne DetectSlot
|
bne DetectSlot
|
||||||
|
|
|
@ -19,14 +19,10 @@ IOError = $27
|
||||||
NoDevice = $28
|
NoDevice = $28
|
||||||
WriteProtect = $2B
|
WriteProtect = $2B
|
||||||
|
|
||||||
; have 6502 absolute indexed access phantom reads
|
InputByte = $c08e
|
||||||
; happen on page $bf to avoid unwanted i/o access
|
OutputByte = $c08d
|
||||||
IndexOffset = $8f
|
InputFlags = $c08b
|
||||||
|
OutputFlags = $c087
|
||||||
InputByte = $c08e - IndexOffset
|
|
||||||
OutputByte = $c08d - IndexOffset
|
|
||||||
InputFlags = $c08b - IndexOffset
|
|
||||||
OutputFlags = $c087 - IndexOffset
|
|
||||||
|
|
||||||
ResetCommand = $00
|
ResetCommand = $00
|
||||||
ReadBlockCommand = $01
|
ReadBlockCommand = $01
|
||||||
|
@ -89,10 +85,9 @@ DetectSlot:
|
||||||
asl
|
asl
|
||||||
asl
|
asl
|
||||||
asl
|
asl
|
||||||
clc
|
|
||||||
adc #IndexOffset
|
|
||||||
tax
|
tax
|
||||||
bcc Init ;always
|
clc
|
||||||
|
bcc Init
|
||||||
nextSlot:
|
nextSlot:
|
||||||
dex
|
dex
|
||||||
bne DetectSlot
|
bne DetectSlot
|
||||||
|
|
Loading…
Reference in New Issue
Block a user