Last change
on this file since 161 was
143,
checked in by aitotat, 13 years ago
|
Changes to XTIDE Universal BIOS:
- Removed "Boot sector found!" string.
- Added option to specify display mode for boot menu.
|
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_TryToBootFromDL |
---|
9 | ; Parameters: |
---|
10 | ; DL: Drive to boot from (translated, 00h or 80h) |
---|
11 | ; DS: RAMVARS segment |
---|
12 | ; Returns: |
---|
13 | ; Nothing |
---|
14 | ; Corrupts registers: |
---|
15 | ; AX, SI, DI |
---|
16 | ;-------------------------------------------------------------------- |
---|
17 | ALIGN JUMP_ALIGN |
---|
18 | BootPrint_TryToBootFromDL: |
---|
19 | push bp |
---|
20 | mov bp, sp |
---|
21 | |
---|
22 | mov ax, g_szHDD |
---|
23 | test dl, dl |
---|
24 | js SHORT .NotFDD |
---|
25 | mov ax, g_szFDD |
---|
26 | .NotFDD: |
---|
27 | push ax |
---|
28 | |
---|
29 | call DriveXlate_ToOrBack |
---|
30 | push dx ; Push untranslated drive number |
---|
31 | call DriveXlate_ToOrBack |
---|
32 | push dx ; Push translated drive number |
---|
33 | |
---|
34 | mov si, g_szTryToBoot |
---|
35 | jmp BootMenuPrint_FormatCSSIfromParamsInSSBP |
---|
36 | |
---|
37 | |
---|
38 | ;-------------------------------------------------------------------- |
---|
39 | ; BootPrint_FailedToLoadFirstSector |
---|
40 | ; Parameters: |
---|
41 | ; AH: INT 13h error code |
---|
42 | ; Returns: |
---|
43 | ; Nothing |
---|
44 | ; Corrupts registers: |
---|
45 | ; AX, CX, SI, DI |
---|
46 | ;-------------------------------------------------------------------- |
---|
47 | ALIGN JUMP_ALIGN |
---|
48 | BootPrint_FailedToLoadFirstSector: |
---|
49 | push bp |
---|
50 | mov bp, sp |
---|
51 | eMOVZX cx, ah |
---|
52 | push cx ; Push INT 13h error code |
---|
53 | mov si, g_szReadError |
---|
54 | jmp BootMenuPrint_FormatCSSIfromParamsInSSBP |
---|
Note: See
TracBrowser
for help on using the repository browser.