Changeset 97 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization/Initialize.asm
- Timestamp:
- Jan 30, 2011, 6:43:08 PM (14 years ago)
- google:author:
- aitotat
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/Initialize.asm
r90 r97 17 17 ; Nothing 18 18 ;-------------------------------------------------------------------- 19 ALIGN JUMP_ALIGN20 19 Initialize_FromMainBiosRomSearch: 21 20 pushf … … 53 52 ; Nothing 54 53 ;-------------------------------------------------------------------- 55 ALIGN JUMP_ALIGN56 54 Initialize_ShouldSkip: 57 55 sti ; Enable interrupts … … 67 65 ; ES: BDA Segment 68 66 ; Returns: 69 ; Nothing67 ; DS: RAMVARS segment 70 68 ; Corrupts registers: 71 ; All , including segments69 ; All 72 70 ;-------------------------------------------------------------------- 73 ALIGN JUMP_ALIGN74 71 Initialize_AndDetectDrives: 75 72 call DetectPrint_RomFoundAtSegment 76 73 call RamVars_Initialize 77 call RamVars_GetSegmentToDS78 74 call Interrupts_InitializeInterruptVectors 79 75 call DetectDrives_FromAllIDEControllers 80 call CompatibleDPT_CreateForDrives80hAnd81h 76 ; Fall to .StoreDptPointersToBDA 77 78 ;-------------------------------------------------------------------- 79 ; .StoreDptPointersToBDA 80 ; Parameters: 81 ; DS: RAMVARS segment 82 ; ES: BDA and interrupt vector segment (zero) 83 ; Returns: 84 ; Nothing 85 ; Corrupts registers: 86 ; DX, DI 87 ;-------------------------------------------------------------------- 88 .StoreDptPointersToBDA: 89 mov dl, 80h 90 call FindDPT_ForDriveNumber ; DPT to DS:DI 91 jnc SHORT .FindForDrive81h ; Store nothing if not our drive 92 mov [es:INTV_HD0DPT*4], di 93 mov [es:INTV_HD0DPT*4+2], ds 94 .FindForDrive81h: 95 inc dx 96 call FindDPT_ForDriveNumber 97 jnc SHORT .ResetDetectedDrives 98 mov [es:INTV_HD1DPT*4], di 99 mov [es:INTV_HD1DPT*4+2], ds 81 100 ; Fall to .ResetDetectedDrives 82 101 83 102 ;-------------------------------------------------------------------- 84 ; Resets all hard disks. 85 ; 86 ; Initialize_ResetDetectedDrives 103 ; .ResetDetectedDrives 87 104 ; Parameters: 88 105 ; DS: RAMVARS segment … … 92 109 ; AX, BX, CX, DX, DI 93 110 ;-------------------------------------------------------------------- 94 ;ALIGN JUMP_ALIGN95 111 .ResetDetectedDrives: 96 112 jmp AH0h_ResetHardDisksHandledByOurBIOS
Note:
See TracChangeset
for help on using the changeset viewer.