Commit 26c40bae authored by Jeffrey Lee's avatar Jeffrey Lee
Browse files

Replace a couple of magic numbers with constants

Detail:
  s/StaticsIDE - Add definitions for the "IORDY supported" & "No 48bit DMA" flags
  s/Adfs14, s/IDEDetect - Replace a couple of magic numbers with the more descriptive named flags
Admin:
  Tested in RiscPC ROM softload


Version 3.48. Retagged as 'ADFS-3_48'
parent 8d30f0b6
......@@ -784,7 +784,7 @@ WinIDEStartTransfer ROUT
TST R0,#WinIDECmdFlag_48bit
BEQ %FT25
LDR LR,[R1,#WinIDEHWFlags]
TST LR,#bit3
TST LR,#WinIDEHWFlag_No48bitDMA
BEQ %FT25
; unable to do DMA command - switch to PIO form
......
......@@ -853,7 +853,7 @@ WinIDEGetTimingForDevice
; mode 3, then just switch to mode 2). Check first
; whether we support IORDY.
LDR LR, [R9, #WinIDEHWFlags]
TST LR, #bit2
TST LR, #WinIDEHWFlag_IORDYSupported
LDREQ LR, [R2, #WinIDEIdMinPIOCycle]
LDRNE LR, [R2, #WinIDEIdMinPIOCycleIORDY]
MOV LR, LR, LSL #16
......
......@@ -298,8 +298,10 @@ SzWinIDEHardware a4 0
]
AlignSpace 4,0
WinIDEHWFlag_SharedIRQ * bit0
WinIDEHWFlag_32bitPIO * bit1
WinIDEHWFlag_SharedIRQ * bit0
WinIDEHWFlag_32bitPIO * bit1
WinIDEHWFlag_IORDYSupported * bit2
WinIDEHWFlag_No48bitDMA * bit3
[ IDEDMA
WinIDEDMADeviceHandle a4 4
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment