Changeset 520 in xtideuniversalbios
- Timestamp:
- Mar 9, 2013, 3:36:37 PM (12 years ago)
- google:author:
- aitotat@gmail.com
- Location:
- trunk/XTIDE_Universal_BIOS
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Inc/BootVars.inc
r500 r520 45 45 %endif 46 46 47 .clearToZeroFromThisPoint:47 48 48 %ifdef MODULE_HOTKEYS 49 49 .hotkeyVars resb HOTKEYVARS_size 50 %else 51 .clearToZeroFromThisPoint: 50 52 %endif 51 53 … … 53 55 endstruc 54 56 57 55 58 %ifdef MODULE_HOTKEYS 56 59 57 60 struc HOTKEYVARS 58 61 .wTimeToClose resb 2 ; Earliest system time when Hotkey Bar can be closed 62 .clearToZeroFromThisPoint: 59 63 .wFddAndHddLetters: 60 64 .bFddLetter resb 1 ; Floppy Drive letter hotkey (upper case) -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH0h_HReset.asm
r507 r520 122 122 123 123 mov si, ControllerResetForDPTinDSDI 124 call .CallSIforEvery Drive; Reset all drives to power on settings125 mov si, AH9h_InitializeDriveForUse126 ; Fall to .CallSIforEvery Drive ; Initialize all drives127 128 .CallSIforEvery Drive:; BH will be garbage on exit if this entry point is used,124 call .CallSIforEveryController ; Reset all drives to power on settings 125 mov si, ControllerInitForMasterOrSingleDPTinDSDI 126 ; Fall to .CallSIforEveryController ; Initialize all controllers (Master and Slave drives) 127 128 .CallSIforEveryController: ; BH will be garbage on exit if this entry point is used, 129 129 ; but reset of all drives will still happen 130 130 … … 166 166 ; Returns: 167 167 ; AH: Int 13h return status 168 ; CF: 0 if successful, 1 if error169 168 ; Corrupts registers: 170 169 ; AL, BX, CX, DX … … 180 179 jmp Device_ResetMasterAndSlaveController 181 180 %endif 181 182 183 ;-------------------------------------------------------------------- 184 ; ControllerInitForMasterOrSingleDPTinDSDI 185 ; Parameters: 186 ; DS:DI: Ptr to DPT for Master or Single Drive (initializes both Master and Slave drive) 187 ; SS:BP: Ptr to IDEPACK 188 ; Returns: 189 ; AH: Int 13h return status 190 ; Corrupts registers: 191 ; AL, BX, CX, DX 192 ;-------------------------------------------------------------------- 193 ControllerInitForMasterOrSingleDPTinDSDI: 194 call AH9h_InitializeDriveForUse ; Init Master or Single drive 195 push ax ; Store error code 196 197 eMOVZX ax, BYTE [di+DPT.bIdevarsOffset] ; Clear AH 198 add di, BYTE LARGEST_DPT_SIZE ; Slave drive or next controller 199 cmp [di+DPT.bIdevarsOffset], al 200 jne SHORT .NoSlaveDrivePresent 201 202 call AH9h_InitializeDriveForUse ; Init Slave drive 203 .NoSlaveDrivePresent: 204 pop bx 205 MAX_U ah, bh ; Return error code from either drive 206 ret -
trunk/XTIDE_Universal_BIOS/Src/Handlers/Int19h.asm
r505 r520 80 80 %ifdef MODULE_HOTKEYS 81 81 call TimerTicks_ReadFromBdaToAX 82 add ax, MIN_TIME_TO_DISPLAY_HOTKEY_BAR82 add ax, BYTE MIN_TIME_TO_DISPLAY_HOTKEY_BAR 83 83 mov [es:BOOTVARS.hotkeyVars+HOTKEYVARS.wTimeToClose], ax 84 84 %endif -
trunk/XTIDE_Universal_BIOS/Src/Initialization/AdvancedAta/AdvAtaInit.asm
r507 r520 101 101 ; DS:DI: Ptr to DPT for Single or Slave Drive 102 102 ; Returns: 103 ; DS:DI: Ptr to DPT for Single or Slave Drive104 103 ; SI: Offset to Master DPT if Slave Drive present 105 104 ; Zero if Slave Drive not present -
trunk/XTIDE_Universal_BIOS/Src/VariablesAndDPTs/BootVars.asm
r500 r520 39 39 mov al, DRVDETECTINFO_size 40 40 mul BYTE [cs:ROMVARS.bIdeCnt] 41 mov di, BOOTVARS.clearToZeroFromThisPoint ; We must not initialize anything before this! 41 %ifdef MODULE_HOTKEYS ; We must not initialize anything before this! 42 mov di, BOOTVARS.hotkeyVars + HOTKEYVARS.clearToZeroFromThisPoint 43 %else 44 mov di, BOOTVARS.clearToZeroFromThisPoint 45 %endif 42 46 add ax, BOOTVARS_size 43 47 sub ax, di
Note:
See TracChangeset
for help on using the changeset viewer.