Changeset 592 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/IdeAutodetect.asm
- Timestamp:
- Jun 25, 2018, 10:29:27 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/IdeAutodetect.asm
r589 r592 118 118 ; example Promise FloppyMAX has Control Block at STANDARD_CONTROL_BLOCK_OFFSET but Sound Blaster 16 (CT2290) 119 119 ; use DEVICE_ATA_SECONDARY_PORTCTRL for Tertiary and Quaternary even though only Secondary should use that. 120 call Change DifferentControlBlockAddressToSI121 j eSHORT .RedetectTertiaryOrQuaternaryWithDifferentControlBlockAddress120 call ChangeControlBlockAddressInSI 121 jz SHORT .RedetectTertiaryOrQuaternaryWithDifferentControlBlockAddress 122 122 123 123 … … 130 130 mov si, dx 131 131 add si, BYTE XTCF_CONTROL_BLOCK_OFFSET 132 shlbx, 1 ; SHL 1 register offsets for XT-CF132 eSHL_IM bx, 1 ; SHL 1 register offsets for XT-CF 133 133 call DetectIdeDeviceFromPortsDXandSIwithOffsetsInBLandBH 134 134 mov al, DEVICE_8BIT_XTCF_PIO8 … … 233 233 234 234 ;-------------------------------------------------------------------- 235 ; Change DifferentControlBlockAddressToSI235 ; ChangeControlBlockAddressInSI 236 236 ; Parameters: 237 237 ; DX: IDE Base Port address … … 241 241 ; Cleared if different control block address is not possible 242 242 ; Corrupts registers: 243 ; AH244 ;-------------------------------------------------------------------- 245 Change DifferentControlBlockAddressToSI:243 ; Nothing 244 ;-------------------------------------------------------------------- 245 ChangeControlBlockAddressInSI: 246 246 cmp si, 368h 247 247 je SHORT .TrySecondAlternative … … 252 252 je SHORT .TryLastAlternative 253 253 cmp si, 3E0h 254 je SHORT .TryLastAlternative 255 ret ; Return with ZF cleared 254 jne SHORT .Return ; With ZF cleared 256 255 257 256 .TryLastAlternative: … … 260 259 .TrySecondAlternative: 261 260 sub si, BYTE 8h ; 368h to 360h, 3E8h to 3E0h 262 xor ah, ah ; Set ZF 261 cmp sp, sp ; Set ZF 262 .Return: 263 263 ret 264 264
Note:
See TracChangeset
for help on using the changeset viewer.