Changeset 489 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Initialization
- Timestamp:
- Dec 13, 2012, 7:32:09 AM (12 years ago)
- google:author:
- gregli@hotmail.com
- Location:
- trunk/XTIDE_Universal_BIOS/Src/Initialization
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectPrint.asm
r474 r489 50 50 51 51 ;-------------------------------------------------------------------- 52 ; Prints BIOS name and segment address where it is found.53 ;54 ; DetectPrint_RomFoundAtSegment55 ; Parameters:56 ; Nothing57 ; Returns:58 ; Nothing59 ; Corrupts registers:60 ; AX, SI, DI61 ;--------------------------------------------------------------------62 DetectPrint_RomFoundAtSegment:63 push bp64 mov bp, sp65 mov si, g_szRomAt66 ePUSH_T ax, ROMVARS.szTitle ; Bios title string67 push cs ; BIOS segment68 69 jmp DetectPrint_FormatCSSIfromParamsInSSBP70 71 72 ;--------------------------------------------------------------------73 52 ; DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP 74 53 ; Parameters: … … 82 61 DetectPrint_StartDetectWithMasterOrSlaveStringInCXandIdeVarsInCSBP: 83 62 mov ax, [cs:bp+IDEVARS.wBasePort] ; for IDE: AX=port address, DH=.bDevice 84 ; Fall to DetectPrint_StartDetectWithAutodetectedBasePortInAX63 ; fall through to DetectPrint_StartDetectWithAutodetectedBasePortInAXandIdeVarsInCSBP 85 64 86 65 ;-------------------------------------------------------------------- … … 167 146 ; Nothing 168 147 ; Corrupts registers: 169 ; AX, SI 148 ; AX, SI, DI 170 149 ;-------------------------------------------------------------------- 171 150 DetectPrint_DriveNameFromDrvDetectInfoInESBX: 172 push di 173 push bx 174 175 lea si, [bx+DRVDETECTINFO.szDrvName] 176 mov bx, es 177 CALL_DISPLAY_LIBRARY PrintNullTerminatedStringFromBXSI 178 CALL_DISPLAY_LIBRARY PrintNewlineCharacters 179 180 pop bx 181 pop di 182 ret 151 push bp 152 mov bp,sp 153 lea si,[bx+DRVDETECTINFO.szDrvName] 154 push si 155 mov si,g_szDriveName 156 jmp SHORT DetectPrint_FormatCSSIfromParamsInSSBP 157 158 159 ;-------------------------------------------------------------------- 160 ; Prints BIOS name and segment address where it is found. 161 ; 162 ; DetectPrint_RomFoundAtSegment 163 ; Parameters: 164 ; Nothing 165 ; Returns: 166 ; Nothing 167 ; Corrupts registers: 168 ; AX, SI, DI 169 ;-------------------------------------------------------------------- 170 DetectPrint_RomFoundAtSegment: 171 mov si, g_szRomAt 172 mov di, cs ; BIOS segment address, for later inclusion in the output, parameterized 173 ; so that it can be a different value when using .BootMenuEntry 174 175 .BootMenuEntry: 176 push bp 177 mov bp, sp 178 179 %ifndef USE_186 180 mov ax, ROMVARS.szTitle 181 push ax 182 push di ; BIOS segment 183 add al, ROMVARS.szVersion - ROMVARS.szTitle 184 push ax 185 %else 186 ; szTitle and szVersion have the high order byte of their addresses zero, 187 ; so these push instructions are only 2 bytes 188 ; 189 push ROMVARS.szTitle 190 push di ; BIOS segment 191 push ROMVARS.szVersion 192 %endif 193 194 jmp SHORT DetectPrint_FormatCSSIfromParamsInSSBP 195 183 196 184 197 ;-------------------------------------------------------------------- -
trunk/XTIDE_Universal_BIOS/Src/Initialization/Interrupts.asm
r431 r489 43 43 %ifndef MODULE_HOTKEYS 44 44 cmp BYTE [RAMVARS.bDrvCnt], 0 45 je SHORT Interrupts_ Return45 je SHORT Interrupts_InstallHandlerToVectorInALFromCSSI.Interrupts_Return 46 46 %endif 47 47 ; Fall to .InitializeInt13hAnd40h … … 172 172 mov [es:bx], si ; Store offset 173 173 mov [es:bx+2], cs ; Store segment 174 Interrupts_Return:174 .Interrupts_Return: 175 175 ret 176 176
Note:
See TracChangeset
for help on using the changeset viewer.