Last change
on this file since 370 was 369, checked in by gregli@…, 13 years ago |
Removed align directives for initalization code and added define for align in boot-time calls to the assembly library (defaulting to 1), resulting in a significant savings for the AT and 386 builds. Fixed a bug with switch command line handling in the serial server. Put in CR characters in licesnse.txt, so that it properly displays on Windows. In the configurator, added default values for user supplied CHS and LBA values, defaulting to values within range when those features are enabled. Updated the copyright message in the configurator as the literal word Copyright is important.
|
File size:
1.3 KB
|
Line | |
---|
1 | ; Project name : XTIDE Universal BIOS
|
---|
2 | ; Description : Functions for printing boot related strings.
|
---|
3 |
|
---|
4 | ; Section containing code
|
---|
5 | SECTION .text
|
---|
6 |
|
---|
7 | ;--------------------------------------------------------------------
|
---|
8 | ; BootPrint_FailedToLoadFirstSector
|
---|
9 | ; Parameters:
|
---|
10 | ; AH: INT 13h error code
|
---|
11 | ; Returns:
|
---|
12 | ; Nothing
|
---|
13 | ; Corrupts registers:
|
---|
14 | ; AX, CX, SI, DI
|
---|
15 | ;--------------------------------------------------------------------
|
---|
16 | BootPrint_FailedToLoadFirstSector:
|
---|
17 | push bp
|
---|
18 | mov bp, sp
|
---|
19 | eMOVZX cx, ah
|
---|
20 | push cx ; Push INT 13h error code
|
---|
21 | mov si, g_szReadError
|
---|
22 |
|
---|
23 | jmp short BootMenuPrint_FormatCSSIfromParamsInSSBP_Relay
|
---|
24 |
|
---|
25 |
|
---|
26 | ;--------------------------------------------------------------------
|
---|
27 | ; BootPrint_TryToBootFromDL
|
---|
28 | ; Parameters:
|
---|
29 | ; DL: Drive to boot from (translated, 00h or 80h)
|
---|
30 | ; DS: RAMVARS segment
|
---|
31 | ; Returns:
|
---|
32 | ; Nothing
|
---|
33 | ; Corrupts registers:
|
---|
34 | ; AX, SI, DI
|
---|
35 | ;--------------------------------------------------------------------
|
---|
36 | BootPrint_TryToBootFromDL:
|
---|
37 | push bp
|
---|
38 | mov bp, sp
|
---|
39 |
|
---|
40 | mov ax, g_szHDD
|
---|
41 | test dl, dl
|
---|
42 | js SHORT .NotFDD
|
---|
43 | mov ax, g_szFDD
|
---|
44 | .NotFDD:
|
---|
45 | push ax
|
---|
46 |
|
---|
47 | call DriveXlate_ToOrBack
|
---|
48 | push dx ; Push untranslated drive number
|
---|
49 | call DriveXlate_ToOrBack
|
---|
50 | push dx ; Push translated drive number
|
---|
51 |
|
---|
52 | mov si, g_szTryToBoot
|
---|
53 | jmp short BootMenuPrint_FormatCSSIfromParamsInSSBP_Relay
|
---|
54 |
|
---|
55 |
|
---|
56 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.