Changeset 188 for trunk/include/version.inc
- Timestamp:
- Nov 7, 2017, 7:12:56 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/version.inc
r179 r188 17 17 ; AiR-BOOT. If not, see <http://www.gnu.org/licenses/>. 18 18 ; 19 20 21 ; 22 ; AiR-BOOT Version Information. 23 ; 24 ; First we define the numeric (BCD) AiR-BOOT version information. 25 ; This is used to derive ASCII and other representations. 26 ; 27 28 IFDEF RELEASE 29 30 ; AiR-BOOT version conform WarpIN format with implicit 0 as fourth number. 31 ; Note that the config-version is managed manually. 32 AB_MAJOR_VERSION EQU 1 33 AB_MIDDLE_VERSION EQU 1 34 AB_MINOR_VERSION EQU 2 35 36 ; The Year, Month and Day in BCD so we can easily extract nibbles. 37 AB_YEAR EQU 2017h 38 AB_MONTH EQU 04h 39 AB_DAY EQU 13h 40 41 ; The Hours, Minutes and Seconds, again in BCD for easy manipulation. 42 AB_HOURS EQU 01h 43 AB_MINUTES EQU 01h 44 AB_SECONDS EQU 02h 45 46 ELSE 47 48 ; AiR-BOOT version conform WarpIN format with implicit 0 as fourth number. 49 ; Note that the config-version is managed manually. 50 AB_MAJOR_VERSION EQU 1 51 AB_MIDDLE_VERSION EQU 1 52 AB_MINOR_VERSION EQU 1 53 54 ; The Year, Month and Day in BCD so we can easily extract nibbles. 55 AB_YEAR EQU 2017h 56 AB_MONTH EQU 04h 57 AB_DAY EQU 13h 58 59 ; The Hours, Minutes and Seconds, again in BCD for easy manipulation. 60 AB_HOURS EQU 23h 61 AB_MINUTES EQU 59h 62 AB_SECONDS EQU 59h 63 64 ENDIF 65 66 ; The AiR-BOOT signature uses big-endian so we shuffle some bits around. 67 AB_SIG_VERSION EQU (((AB_MIDDLE_VERSION SHL 4) OR AB_MINOR_VERSION) SHL 8) OR AB_MAJOR_VERSION 68 AB_SIG_YEAR EQU ((AB_YEAR SHR 8) OR (AB_YEAR SHL 8) AND 0FFFFh) 69 AB_SIG_DATE EQU (AB_MONTH SHL 8) OR AB_DAY 70 19 71 20 72 ; … … 51 103 ; e0h bright yellow 52 104 ; f0h bright white 53 54 ;55 ; AiR-BOOT Version Information.56 ;57 58 ;59 ; First we define the numeric (BCD) AiR-BOOT version information.60 ; This is used to derive ASCII and other representations.61 ;62 63 ; AiR-BOOT version conform WarpIN format with implicit 0 as fourth number.64 ; Note that the config-version is managed manually.65 AB_MAJOR_VERSION EQU 166 AB_MIDDLE_VERSION EQU 167 AB_MINOR_VERSION EQU 168 69 ; The Year, Month and Day in BCD so we can easily extract nibbles.70 AB_YEAR EQU 2017h71 AB_MONTH EQU 04h72 AB_DAY EQU 13h73 74 ; The Hours, Minutes and Seconds, again in BCD for easy manipulation.75 ;~ AB_HOURS EQU 01h76 ;~ AB_MINUTES EQU 01h77 ;~ AB_SECONDS EQU 01h78 AB_HOURS EQU 23h79 AB_MINUTES EQU 59h80 AB_SECONDS EQU 59h81 82 ; The AiR-BOOT signature uses big-endian so we shuffle some bits around.83 AB_SIG_VERSION EQU (((AB_MIDDLE_VERSION SHL 4) OR AB_MINOR_VERSION) SHL 8) OR AB_MAJOR_VERSION84 AB_SIG_YEAR EQU ((AB_YEAR SHR 8) OR (AB_YEAR SHL 8) AND 0FFFFh)85 AB_SIG_DATE EQU (AB_MONTH SHL 8) OR AB_DAY86
Note:
See TracChangeset
for help on using the changeset viewer.