1 | ; Project name : XTIDE Universal BIOS |
---|
2 | ; Description : Functions for printing boot related strings. |
---|
3 | |
---|
4 | ; |
---|
5 | ; XTIDE Universal BIOS and Associated Tools |
---|
6 | ; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team. |
---|
7 | ; |
---|
8 | ; This program is free software; you can redistribute it and/or modify |
---|
9 | ; it under the terms of the GNU General Public License as published by |
---|
10 | ; the Free Software Foundation; either version 2 of the License, or |
---|
11 | ; (at your option) any later version. |
---|
12 | ; |
---|
13 | ; This program is distributed in the hope that it will be useful, |
---|
14 | ; but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | ; GNU General Public License for more details. |
---|
17 | ; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
18 | ; |
---|
19 | |
---|
20 | ; Section containing code |
---|
21 | SECTION .text |
---|
22 | |
---|
23 | ;-------------------------------------------------------------------- |
---|
24 | ; BootPrint_FailedToLoadFirstSector |
---|
25 | ; Parameters: |
---|
26 | ; AH: INT 13h error code |
---|
27 | ; Returns: |
---|
28 | ; Nothing |
---|
29 | ; Corrupts registers: |
---|
30 | ; AX, CX, SI, DI |
---|
31 | ;-------------------------------------------------------------------- |
---|
32 | BootPrint_FailedToLoadFirstSector: |
---|
33 | push bp |
---|
34 | mov bp, sp |
---|
35 | eMOVZX cx, ah |
---|
36 | push cx ; Push INT 13h error code |
---|
37 | mov si, g_szReadError |
---|
38 | |
---|
39 | jmp short BootMenuPrint_FormatCSSIfromParamsInSSBP_Relay |
---|
40 | |
---|
41 | |
---|
42 | ;-------------------------------------------------------------------- |
---|
43 | ; BootPrint_TryToBootFromDL |
---|
44 | ; Parameters: |
---|
45 | ; DL: Drive to boot from (translated, 00h or 80h) |
---|
46 | ; DS: RAMVARS segment |
---|
47 | ; Returns: |
---|
48 | ; Nothing |
---|
49 | ; Corrupts registers: |
---|
50 | ; AX, SI, DI |
---|
51 | ;-------------------------------------------------------------------- |
---|
52 | BootPrint_TryToBootFromDL: |
---|
53 | push bp |
---|
54 | mov bp, sp |
---|
55 | |
---|
56 | mov ax, g_szHDD |
---|
57 | test dl, dl |
---|
58 | js SHORT .NotFDD |
---|
59 | mov ax, g_szFDD |
---|
60 | .NotFDD: |
---|
61 | push ax |
---|
62 | |
---|
63 | call DriveXlate_ToOrBack |
---|
64 | push dx ; Push untranslated drive number |
---|
65 | call DriveXlate_ToOrBack |
---|
66 | push dx ; Push translated drive number |
---|
67 | |
---|
68 | mov si, g_szTryToBoot |
---|
69 | jmp short BootMenuPrint_FormatCSSIfromParamsInSSBP_Relay |
---|
70 | |
---|
71 | |
---|
72 | |
---|