Changeset 558 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization
- Timestamp:
- Jun 23, 2013, 3:52:31 PM (11 years ago)
- google:author:
- krille_n_@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Initialization
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectDrives.asm
r545 r558 135 135 %endif 136 136 137 %ifdef MODULE_8BIT_IDE_ADVANCED 138 NoSlaveDriveAvailable: 139 %endif 137 140 ret 138 141 … … 153 156 ; ES: Zero (BDA segment) 154 157 ; Returns: 155 ; No ne158 ; Nothing 156 159 ; Corrupts registers: 157 160 ; AX, BL, CX, DX, SI, DI 158 161 ;-------------------------------------------------------------------- 159 162 StartDetectionWithDriveSelectByteInBHandStringInCX: 160 %ifdef MODULE_8BIT_IDE 161 call DetectDrives_DoesIdevarsInCSBPbelongToXTCF 162 jne SHORT .ShouldNotSkipSlaveDriveDetection 163 %ifdef MODULE_8BIT_IDE_ADVANCED 164 mov al, [cs:bp+IDEVARS.bDevice] 165 cmp al, DEVICE_8BIT_XTCF_PIO8 166 jb SHORT .DoNotSkipSlaveDriveDetection 167 cmp al, DEVICE_8BIT_XTCF_DMA 168 ja SHORT .DoNotSkipSlaveDriveDetection 163 169 164 170 ; XT-CF do not support slave drives so skip detection 165 171 test bh, FLG_DRVNHEAD_DRV 166 172 jnz SHORT NoSlaveDriveAvailable 167 . ShouldNotSkipSlaveDriveDetection:168 %endif ; MODULE_8BIT_IDE 173 .DoNotSkipSlaveDriveDetection: 174 %endif ; MODULE_8BIT_IDE_ADVANCED 169 175 170 176 call DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP 171 .DriveDetectionStringPrintedOnScreen: 177 172 178 %ifdef MODULE_HOTKEYS 173 179 call HotkeyBar_UpdateDuringDriveDetection … … 247 253 call DriveDetectInfo_CreateForHardDisk 248 254 jmp SHORT DetectPrint_DriveNameFromDrvDetectInfoInESBX 249 250 251 %ifdef MODULE_8BIT_IDE252 ;--------------------------------------------------------------------253 ; DetectDrives_DoesIdevarsInCSBPbelongToXTCF254 ; Parameters:255 ; CS:BP: Ptr to IDEVARS for the drive256 ; Returns:257 ; ZF: Set if IDEVARS belongs to XT-CF device258 ; Cleared if some other device259 ; Corrupts registers:260 ; AL261 ;--------------------------------------------------------------------262 DetectDrives_DoesIdevarsInCSBPbelongToXTCF:263 mov al, [cs:bp+IDEVARS.bDevice]264 cmp al, DEVICE_8BIT_XTCF_PIO8265 je SHORT .Done266 cmp al, DEVICE_8BIT_XTCF_PIO8_WITH_BIU_OFFLOAD267 268 %ifdef MODULE_8BIT_IDE_ADVANCED269 je SHORT .Done270 cmp al, DEVICE_8BIT_XTCF_DMA271 %endif ; MODULE_8BIT_IDE_ADVANCED272 273 .Done: ; return state via ZF, set from the cmp instructions274 NoSlaveDriveAvailable:275 ret276 %endif ; MODULE_8BIT_IDE -
trunk/XTIDE_Universal_BIOS/Src/Initialization/Initialize.asm
r556 r558 35 35 Initialize_FromMainBiosRomSearch: ; unused entrypoint ok 36 36 pushf ; To store IF 37 sti ; Enable interrupts for keystrokes 37 38 push ds 38 39 … … 45 46 %endif 46 47 47 sti ; Enable interrupts for keystrokes48 48 test BYTE [BDA.bKBFlgs1], (1<<2) ; Clears ZF if CTRL is held down 49 49 jnz SHORT .SkipRomInitialization -
trunk/XTIDE_Universal_BIOS/Src/Initialization/Interrupts.asm
r540 r558 97 97 .InitializeHardwareIrqHandlers: 98 98 call RamVars_GetIdeControllerCountToCX 99 mov di, ROMVARS.ideVars0+IDEVARS.bIRQ ; CS:SI points to first IDEVARS99 mov di, ROMVARS.ideVars0+IDEVARS.bIRQ 100 100 .IdeControllerLoop: 101 101 mov al, [cs:di]
Note:
See TracChangeset
for help on using the changeset viewer.