source: trunk/BOOTCODE/VERSION.INC@ 52

Last change on this file since 52 was 52, checked in by Ben Rietbroek, 12 years ago

Added BOOKMARK Comments [2013-02-27]

I recently added the 'addons' plugin to Geany, the editor I use on
Linux, and it contains a very handy feature to scan sources for tags
like FIXME:, BOOKMARK: and the like. Custom tags can also be defined.

So I added some major bookmark locations to easily navigate around
multiple sources. What's also nice is that of course these tags can be
listed with grep. For instance, grep -r -n 'BOOKMARK:' *.ASM will
display a list of all bookmark comments with line-numbers in the
assembler sources in the current and underlying directories.

Changes:

o Started fixing the CRC issue

Since AiR-BOOT now updates the PBR on HPFS and JFS, the CRC needs to
be recalculated and stored in the IPT. Otherwise AB will think the
PBR is infected and a virus message will appear.

o Changed PART_UpdateBootRecordCRC

Only PartitionSector could be CRC'd because it was hard coded.
Also, SI got immediately overwritten and that might have been an
unsurfaced bug, even in v.106. Have to investigate this further.
Changed to use BX as a pointer to the sector to be CRC'd.

File size: 2.3 KB
Line 
1;
2; AiR-BOOT (c) Copyright 1998-2008 M. Kiewitz
3;
4; This file is part of AiR-BOOT
5;
6; AiR-BOOT is free software: you can redistribute it and/or modify it under
7; the terms of the GNU General Public License as published by the Free
8; Software Foundation, either version 3 of the License, or (at your option)
9; any later version.
10;
11; AiR-BOOT is distributed in the hope that it will be useful, but WITHOUT ANY
12; WARRANTY: without even the implied warranty of MERCHANTABILITY or FITNESS
13; FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14; details.
15;
16; You should have received a copy of the GNU General Public License along with
17; AiR-BOOT. If not, see <http://www.gnu.org/licenses/>.
18;
19
20
21;
22; AiR-BOOT Version Information.
23;
24
25;
26; First we define the numeric (BCD) AiR-BOOT version information.
27; This is used to derive ASCII and other representations.
28;
29
30; AiR-BOOT version conform WarpIN format with implicit 0 as fourth number.
31; Note that the config-version is managed manually.
32AB_MAJOR_VERSION EQU 1
33AB_MIDDLE_VERSION EQU 0
34AB_MINOR_VERSION EQU 8
35
36; The Year, Month and Day in BCD so we can easily extract nibbles.
37AB_YEAR EQU 2013h
38AB_MONTH EQU 02h
39AB_DAY EQU 24h
40
41; The Hours, Minutes and Seconds, again in BCD for easy manipulation.
42AB_HOURS EQU 21h
43AB_MINUTES EQU 16h
44AB_SECONDS EQU 00h
45
46; The AiR-BOOT signature uses big-endian so we shuffle some bits around.
47AB_SIG_VERSION EQU (((AB_MIDDLE_VERSION SHL 4) OR AB_MINOR_VERSION) SHL 8) OR AB_MAJOR_VERSION
48AB_SIG_YEAR EQU ((AB_YEAR SHR 8) OR (AB_YEAR SHL 8) AND 0FFFFh)
49AB_SIG_DATE EQU (AB_MONTH SHL 8) OR AB_DAY
50
51
52;
53; This macro inserts the AiR-BOOT signature at the place where it is invoked.
54;
55InsertAirbootSignature MACRO lang
56 db 'AiRBOOT'
57 dw AB_SIG_DATE
58 dw AB_SIG_YEAR
59 dw AB_SIG_VERSION
60 ; Wasm can only process the reference to 'lang' in pass 2 because it comes
61 ; from an included file which it has not processed yet at pass 1.
62 IFDEF WASM
63 IF2
64 db lang
65 ENDIF
66 ; The other assemblers process 'lang' correctly in pass 1.
67 ELSE
68 db lang
69 ENDIF
70ENDM
Note: See TracBrowser for help on using the repository browser.