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

Last change on this file since 373 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
RevLine 
[88]1; Project name : XTIDE Universal BIOS
[3]2; Description : Functions for printing boot related strings.
3
4; Section containing code
5SECTION .text
6
7;--------------------------------------------------------------------
[192]8; BootPrint_FailedToLoadFirstSector
9; Parameters:
10; AH: INT 13h error code
11; Returns:
12; Nothing
13; Corrupts registers:
14; AX, CX, SI, DI
15;--------------------------------------------------------------------
16BootPrint_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;--------------------------------------------------------------------
[3]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:
[120]34; AX, SI, DI
[3]35;--------------------------------------------------------------------
36BootPrint_TryToBootFromDL:
[88]37 push bp
38 mov bp, sp
[3]39
[95]40 mov ax, g_szHDD
[128]41 test dl, dl
42 js SHORT .NotFDD
43 mov ax, g_szFDD
44.NotFDD:
[95]45 push ax
[88]46
[3]47 call DriveXlate_ToOrBack
48 push dx ; Push untranslated drive number
[88]49 call DriveXlate_ToOrBack
50 push dx ; Push translated drive number
[3]51
52 mov si, g_szTryToBoot
[241]53 jmp short BootMenuPrint_FormatCSSIfromParamsInSSBP_Relay
[3]54
55
[192]56
Note: See TracBrowser for help on using the repository browser.