source: trunk/BOOTCODE/BLDLEVEL.INC@ 50

Last change on this file since 50 was 47, checked in by Ben Rietbroek, 11 years ago

Fixed Installer to handle packed hideparttable [2012-04-23]

WARNING!!

All commits upto and including the commit of [2012-05-13] contain
a severe bug!! Building from these sources and then disabling
the 'force LBA' feature while also using the drive-letter feature or
editing the label can DESTROY THE MBR on ALL ATTACHED DISKS!!
DO NOT DISABLE 'FORCE LBA USAGE' WHEN BUILT FROM THE THESE COMMITS!!

Changes

o Installer can now handle packed hideparttable
o Implemented upgrading from v1.06 directly to v1.0.8
o Fixed minor stuff when upgrading from v1.06 to v1.07
o Implemented DOS code in C cross-platform installer

There is now one C source for 4 platforms:
DOS,WIN32,OS2 and LINUX (Linux portion not ready yet)
This obsoletes AIRBOOT.ASM/AIRBOOT.COM.
DOS Installer is now AIRBOOTD.EXE.

o This commit is prepairing for v1.0.8-rc2

File size: 3.8 KB
Line 
1;
2; OS/2 BLDLEVEL Information.
3;
4
5
6;
7; The version values in here are derived from the AiR-BOOT versions
8; as defined in VERSION.INC.
9;
10
11;
12; For some reason JWasm and Tasm don't accept 'EN' for instance, but need
13; it to be split-up. While 'iEN' does work. So all the strings that were not
14; accepted are split-up.
15;
16; Changed langid to be just one letter in build-level, conforming to the
17; AiR-BOOT signature.
18;
19
20; Vendor
21BLDLVL_VENDOR EQU 'KIEWITZ'
22; Version
23BLDLVL_MAJOR_VERSION EQU AB_MAJOR_VERSION + '0'
24BLDLVL_MIDDLE_VERSION EQU AB_MIDDLE_VERSION + '0'
25BLDLVL_MINOR_VERSION EQU AB_MINOR_VERSION + '0'
26; Build date
27BLDLVL_YEAR EQU (AB_YEAR SHR 12 AND 0Fh)+'0',(AB_YEAR SHR 8 AND 0Fh)+'0',(AB_YEAR SHR 4 AND 0Fh)+'0',(AB_YEAR AND 0Fh)+'0'
28BLDLVL_MONTH EQU (AB_MONTH SHR 4)+'0',(AB_MONTH AND 0Fh)+'0'
29BLDLVL_DAY EQU (AB_DAY SHR 4)+'0',(AB_DAY AND 0Fh)+'0'
30; Build time
31BLDLVL_HOURS EQU (AB_HOURS SHR 4)+'0',(AB_HOURS AND 0Fh)+'0'
32BLDLVL_MINUTES EQU (AB_MINUTES SHR 4)+'0',(AB_MINUTES AND 0Fh)+'0'
33BLDLVL_SECONDS EQU (AB_SECONDS SHR 4)+'0',(AB_SECONDS AND 0Fh)+'0'
34; Build machine
35;BLDLVL_MACHINE EQU 'ecs-devbox'
36BLDLVL_MACHINE EQU '*UNKNOWN*'
37; Build language
38IFDEF WASM
39 ; Wasm can only process the reference to 'lang' in pass 2 because it comes
40 ; from an included file which it has not processed yet at pass 1.
41 IF2
42 BLDLVL_LANGUAGE EQU TXT_LanguageID
43 ENDIF
44; The other assemblers process 'lang' correctly in pass 1.
45ELSE
46 BLDLVL_LANGUAGE EQU TXT_LanguageID
47ENDIF
48; Description
49BLDLVL_DESCRIPTION EQU 'AiR-BOOT Boot Manager'
50
51
52
53;~ bliep struct
54 ;~ db '@#'
55 ;~ db BLDLVL_VENDOR
56 ;~ db ':'
57 ;~ db BLDLVL_MAJOR_VERSION
58 ;~ db '.'
59 ;~ db BLDLVL_MIDDLE_VERSION
60 ;~ db '.'
61 ;~ db BLDLVL_MINOR_VERSION
62 ;~ db '#@##1## '
63;~ bld_level_date_start db BLDLVL_YEAR
64 ;~ db '/'
65 ;~ db BLDLVL_MONTH
66 ;~ db '/'
67 ;~ db BLDLVL_DAY
68 ;~ db ' '
69 ;~ db BLDLVL_HOURS
70 ;~ db ':'
71 ;~ db BLDLVL_MINUTES
72 ;~ db ':'
73 ;~ db BLDLVL_SECONDS
74;~ bld_level_date_end db ' '
75 ;~ db BLDLVL_MACHINE
76 ;~ db '::'
77 ;~ ; Wasm can only process the reference to 'lang' in pass 2 because it comes
78 ;~ ; from an included file which it has not processed yet at pass 1.
79 ;~ IFDEF WASM
80 ;~ IF2
81 ;~ db BLDLVL_LANGUAGE
82 ;~ ENDIF
83 ;~ ; The other assemblers process 'lang' correctly in pass 1.
84 ;~ ELSE
85 ;~ db BLDLVL_LANGUAGE
86 ;~ ENDIF
87 ;~ db '::'
88 ;~ db BLDLVL_MINOR_VERSION
89 ;~ db '::@@'
90 ;~ db BLDLVL_DESCRIPTION
91 ;~ db 0
92;~ bliep ends
93
94
95;
96; This macro inserts the BLDLEVEL string at the place where it is invoked.
97;
98InsertBuildLevel MACRO
99 db '@#'
100 db BLDLVL_VENDOR
101 db ':'
102 db BLDLVL_MAJOR_VERSION
103 db '.'
104 db BLDLVL_MIDDLE_VERSION
105 db '.'
106 db BLDLVL_MINOR_VERSION
107 db '#@##1## '
108bld_level_date_start:
109 db BLDLVL_YEAR
110 db '/'
111 db BLDLVL_MONTH
112 db '/'
113 db BLDLVL_DAY
114 db ' '
115 db BLDLVL_HOURS
116 db ':'
117 db BLDLVL_MINUTES
118 db ':'
119 db BLDLVL_SECONDS
120bld_level_date_end:
121 db ' '
122 db BLDLVL_MACHINE
123 db '::'
124 ; Wasm can only process the reference to 'lang' in pass 2 because it comes
125 ; from an included file which it has not processed yet at pass 1.
126 IFDEF WASM
127 IF2
128 db BLDLVL_LANGUAGE
129 ENDIF
130 ; The other assemblers process 'lang' correctly in pass 1.
131 ELSE
132 db BLDLVL_LANGUAGE
133 ENDIF
134 db '::'
135 db BLDLVL_MINOR_VERSION
136 db '::@@'
137 db BLDLVL_DESCRIPTION
138 db 0
139ENDM
140
Note: See TracBrowser for help on using the repository browser.