Changeset 523 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2
- Timestamp:
- Mar 12, 2013, 3:16:28 PM (12 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS_Configurator_v2/Src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/AutoConfigure.asm
r505 r523 43 43 call ResetIdevarsToDefaultValues 44 44 call DetectIdePortsAndDevices 45 call EnableInterruptsForPrimaryAndSecondaryControllers 45 46 call StoreAndDisplayNumberOfControllers 46 47 … … 122 123 123 124 ;-------------------------------------------------------------------- 125 ; EnableInterruptsForPrimaryAndSecondaryControllers 126 ; Parameters: 127 ; DS:DI: Ptr to ROMVARS 128 ; CX: Number of controllers detected 129 ; Returns: 130 ; Nothing 131 ; Corrupts registers: 132 ; AX, ES 133 ;-------------------------------------------------------------------- 134 ALIGN JUMP_ALIGN 135 EnableInterruptsForPrimaryAndSecondaryControllers: 136 jcxz .NoControllersDetected 137 call Buffers_IsXTbuildLoaded 138 je SHORT .DoNotEnableIRQforXTbuilds 139 push di 140 push cx 141 142 add di, BYTE ROMVARS.ideVars0 ; DS:DI now points first IDEVARS 143 .CheckNextController: 144 mov al, 14 145 cmp WORD [di+IDEVARS.wBasePort], DEVICE_ATA_PRIMARY_PORT 146 je SHORT .EnableIrqAL 147 148 inc ax ; 15 149 cmp WORD [di+IDEVARS.wBasePort], DEVICE_ATA_SECONDARY_PORT 150 jne SHORT .DoNotEnableIRQ 151 152 .EnableIrqAL: 153 mov [di+IDEVARS.bIRQ], al 154 .DoNotEnableIRQ: 155 loop .CheckNextController 156 pop cx 157 pop di 158 .DoNotEnableIRQforXTbuilds: 159 .NoControllersDetected: 160 ret 161 162 163 ;-------------------------------------------------------------------- 124 164 ; StoreAndDisplayNumberOfControllers 125 165 ; Parameters: -
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/EEPROM.asm
r484 r523 78 78 EEPROM_GetXtideUniversalBiosSizeFromESDItoDXCX: 79 79 xor dx, dx 80 eMOVZX cx, [es:di+ROMVARS.bRomSize]80 eMOVZX cx, BYTE [es:di+ROMVARS.bRomSize] 81 81 eSHL_IM cx, 9 ; *= 512 for byte count 82 82 ret … … 108 108 ; Cleared if EEPROM not found 109 109 ; Corrupts registers: 110 ; AX, BX, CX, SI , DI110 ; AX, BX, CX, SI 111 111 ;-------------------------------------------------------------------- 112 112 ALIGN JUMP_ALIGN … … 114 114 push es 115 115 push ds 116 push di 116 117 117 118 call EEPROM_FindXtideUniversalBiosROMtoESDI … … 128 129 129 130 .XtideUniversalBiosNotFound: 131 pop di 130 132 pop ds 131 133 pop es
Note:
See TracChangeset
for help on using the changeset viewer.