source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS/Src/Strings.asm @ 186

Last change on this file since 186 was 186, checked in by gregli@…, 11 years ago

Initial string compression checkin. All changes are under MODULE_STRINGS_COMPRESSED, and this can still be turned off. With this checkin, the serial and ebios code can both be turned on at the same time and still we remain below the 8K boundary (barely). I still need to chekin StringsCompress.pl after some more code cleanup. The output, in StringsCompressed.asm is checked in here, and should continue be to checkin when Strings.asm is changed, for those who do not have/want to run the Perl script to recreate it.

File size: 4.0 KB
Line 
1; Project name  :   XTIDE Universal BIOS
2; Description   :   Strings and equates for BIOS messages.
3
4%ifdef MODULE_STRINGS_COMPRESSED_PRECOMPRESS
5%include "Display.inc"
6%endif
7
8; Section containing code
9SECTION .text
10
11; POST drive detection strings
12g_szRomAt:      db  "%s @ %x",LF,CR,NULL
13g_szMaster:     db  "Master",NULL
14g_szSlave:      db  "Slave ",NULL
15g_szDetect:     db  "IDE %s at %x: ",NULL           ; IDE Master at 1F0h:
16
17
18; Boot loader strings
19g_szTryToBoot:          db  "Booting from %s %x",ANGLE_QUOTE_RIGHT,"%x",LF,CR,NULL
20g_szBootSectorNotFound: db  "Boot sector "
21g_szNotFound:           db  "not found",LF,CR,NULL
22g_szReadError:          db  "Error %x!",LF,CR,NULL
23
24; Boot menu bottom of screen strings
25g_szFDD:        db  "FDD     ",NULL
26g_szHDD:        db  "HDD     ",NULL
27g_szRomBoot:    db  "ROM Boot",NULL
28g_szHotkey:     db  "%A%c%c%A%s%A ",NULL
29
30
31; Boot Menu menuitem strings
32g_szDriveNum:   db  "%x ",NULL
33g_szFDLetter:   db  "%s %c",NULL
34g_szFloppyDrv:  db  "Floppy Drive",NULL
35g_szforeignHD:  db  "Foreign Hard Disk",NULL
36
37; Boot Menu information strings
38g_szCapacity:   db  "Capacity : ",NULL
39g_szSizeSingle: db  "%s%u.%u %ciB",NULL
40g_szSizeDual:   db  "%s%5-u.%u %ciB /%5-u.%u %ciB",LF,CR,NULL
41g_szCfgHeader:  db  "Addr.",SINGLE_VERTICAL,"Block",SINGLE_VERTICAL,"Bus",  SINGLE_VERTICAL,"IRQ",  SINGLE_VERTICAL,"Reset",LF,CR,NULL
42g_szCfgFormat:  db  "%s"   ,SINGLE_VERTICAL,"%5-u", SINGLE_VERTICAL,"%s",SINGLE_VERTICAL," %2-I",SINGLE_VERTICAL,"%5-x",  NULL
43       
44g_szAddressingModes:                   
45g_szLCHS:       db  "L-CHS",NULL
46g_szPCHS:       db  "P-CHS",NULL
47g_szLBA28:      db  "LBA28",NULL
48g_szLBA48:      db  "LBA48",NULL
49g_szAddressingModes_Displacement equ (g_szPCHS - g_szAddressingModes)
50;
51; Ensure that addressing modes are correctly spaced in memory
52;
53%if g_szLCHS <> g_szAddressingModes
54%error "g_szAddressingModes Displacement Incorrect 1"
55%endif
56%if g_szPCHS <> g_szLCHS + g_szAddressingModes_Displacement
57%error "g_szAddressingModes Displacement Incorrect 2"
58%endif
59%if g_szLBA28 <> g_szPCHS + g_szAddressingModes_Displacement       
60%error "g_szAddressingModes Displacement Incorrect 3"
61%endif
62%if g_szLBA48 <> g_szLBA28 + g_szAddressingModes_Displacement       
63%error "g_szAddressingModes Displacement Incorrect 4"
64%endif             
65       
66g_szFddUnknown: db  "%sUnknown",NULL
67g_szFddSizeOr:  db  "%s5",ONE_QUARTER,QUOTATION_MARK," or 3",ONE_HALF,QUOTATION_MARK," DD",NULL
68g_szFddSize:    db  "%s%s",QUOTATION_MARK,", %u kiB",NULL   ; 3½", 1440 kiB
69
70g_szFddThreeHalf:       db  "3",ONE_HALF,NULL
71g_szFddFiveQuarter:     db  "5",ONE_QUARTER,NULL       
72g_szFddThreeFive_Displacement equ (g_szFddFiveQuarter - g_szFddThreeHalf)
73
74g_szBusTypeValues:     
75g_szBusTypeValues_8Dual:        db      "D8 ",NULL
76g_szBusTypeValues_8Reversed:    db      "X8 ",NULL
77g_szBusTypeValues_8Single:      db      "S8 ",NULL
78g_szBusTypeValues_16:           db      " 16",NULL
79g_szBusTypeValues_32:           db      " 32",NULL
80g_szBusTypeValues_Serial:       db      "SER",NULL
81g_szBusTypeValues_Displacement equ (g_szBusTypeValues_8Reversed - g_szBusTypeValues)
82;
83; Ensure that bus type strings are correctly spaced in memory
84;
85%if g_szBusTypeValues_8Dual <> g_szBusTypeValues
86%error "g_szBusTypeValues Displacement Incorrect 1"
87%endif
88%if g_szBusTypeValues_8Reversed <> g_szBusTypeValues + g_szBusTypeValues_Displacement
89%error "g_szBusTypeValues Displacement Incorrect 2"     
90%endif
91%if g_szBusTypeValues_8Single <> g_szBusTypeValues_8Reversed + g_szBusTypeValues_Displacement
92%error "g_szBusTypeValues Displacement Incorrect 3"             
93%endif
94%if g_szBusTypeValues_16 <> g_szBusTypeValues_8Single + g_szBusTypeValues_Displacement     
95%error "g_szBusTypeValues Displacement Incorrect 4"             
96%endif
97%if g_szBusTypeValues_32 <> g_szBusTypeValues_16 + g_szBusTypeValues_Displacement
98%error "g_szBusTypeValues Displacement Incorrect 5"             
99%endif
100%if g_szBusTypeValues_Serial <> g_szBusTypeValues_32 + g_szBusTypeValues_Displacement
101%error "g_szBusTypeValues Displacement Incorrect 6"             
102%endif             
103       
104g_szSelectionTimeout:   db      DOUBLE_BOTTOM_LEFT_CORNER,DOUBLE_LEFT_HORIZONTAL_TO_SINGLE_VERTICAL,"%ASelection in %2-u s",NULL
105
106g_szDashForZero:        db      "- ",NULL
Note: See TracBrowser for help on using the repository browser.