source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS/Src/Boot/BootPrint.asm@ 382

Last change on this file since 382 was 376, checked in by gregli@…, 12 years ago

WIDE checkin... Added copyright and license information to sorce files, as per the GPL instructions for usage.

File size: 2.0 KB
Line 
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
21SECTION .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;--------------------------------------------------------------------
32BootPrint_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;--------------------------------------------------------------------
52BootPrint_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
Note: See TracBrowser for help on using the repository browser.