BCOS Include FilesProject Map
Native File Format Header
File: inc/ff/header.inc
 

Copyright © Brendan Trotter 2008

This material is provided by Brendan Trotter as a service to interested parties on an "as-is" basis, for informational purposes only. Brendan Trotter assumes no responsibility for any errors or omissions. Brendan Trotter does not make, and expressly disclaims any, representations or warranties, express or implied, regarding this web page and the host web site, including, without limitation, any implied warranties of merchantability or fitness for a particular purpose.

Under no circumstances shall Brendan Trotter, or any associated contributors, volunteers or representatives be liable for any damages, whether direct, indirect, special or consequential damages for lost revenues, lost profits, or otherwise, arising from or in connection with this web page, the host web site, or the materials contained herein.

All materials contained in these files are protected by copyright laws, and may not be reproduced, republished, distributed, transmitted, displayed, broadcast or otherwise exploited in any manner without the express prior written permission of Brendan Trotter. You may make one copy of this web page for your personal and non-commercial use only, without altering or removing this copyright notice or any other notice.




Native File Format Header Macro

This macro is used to define the Native File Format Header.

Usage:

     NFF_HEADER <file_size>, <file_type>

Permitted file types are defined below.

14: %macro NFF_HEADER 2
15:       dq %1
16:       db 'BCOS_NFF'
17:       dd 0
18:       dd %2
19:       dq 0
20: %endmacro


File Types

The following definitions are derived from the BCOS File Type Specification.

29: ;Text file formats
30: 
31: 
%define FILETYPE_PLAIN_TEXT_MAJOR         0x0010
32: %define FILETYPE_PLAIN_TEXT_NATIVE        (FILETYPE_PLAIN_TEXT_MAJOR << 16 | 0x0000)      ;Spec: BCOS Plain Text File Format Specification
33: 
34: 
;Compressed file formats
35: 
36: 
%define FILETYPE_COMPRESSED_MAJOR         0xC000
37: %define FILETYPE_COMPRESSED_NATIVE        (FILETYPE_COMPRESSED_MAJOR << 16 | 0x0000)
38: 
39: 
40: 
;Graphics image file formats
41: 
42: 
%define FILETYPE_GRAPHICS_IMAGE_MAJOR     0x8000
43: %define FILETYPE_GRAPHICS_IMAGE_NATIVE    (FILETYPE_GRAPHICS_IMAGE_MAJOR << 16 | 0x0000)
44: %define FILETYPE_GRAPHICS_IMAGE_PNG       (FILETYPE_GRAPHICS_IMAGE_MAJOR << 16 | 0x0001)
45: %define FILETYPE_GRAPHICS_IMAGE_JPEG      (FILETYPE_GRAPHICS_IMAGE_MAJOR << 16 | 0x0002)
46: %define FILETYPE_GRAPHICS_IMAGE_BMP       (FILETYPE_GRAPHICS_IMAGE_MAJOR << 16 | 0x0003)
47: 
48: 
;BCOS Special Files
49: 
50: 
%define FILETYPE_BCOS_MAJOR               0xFFFF
51: %define FILETYPE_BCOS_FRL                 (FILETYPE_BCOS_MAJOR << 16 | 0x0010)            ;Spec: BCOS Faulty RAM List File Format Specification
52: %define FILETYPE_BCOS_commonPCBIOS        (FILETYPE_BCOS_MAJOR << 16 | 0x0080)            ;Spec: BCOS 80x86 Common PC BIOS Module File Format Specification
53: %define FILETYPE_BCOS_bootImage           (FILETYPE_BCOS_MAJOR << 16 | 0x0100)            ;Spec: BCOS Boot Image File Format Specification
54: %define FILETYPE_BCOS_bootCatalogue       (FILETYPE_BCOS_MAJOR << 16 | 0x0180)            ;Spec: BCOS Boot Catalogue Specification
55: 
56: 
%define FILETYPE_BCOS_executable          (FILETYPE_BCOS_MAJOR << 16 | 0x1000)            ;Spec: BCOS Native Executable File Format Specification
57: %define FILETYPE_BCOS_stage2manager       (FILETYPE_BCOS_MAJOR << 16 | 0x1001)            ;Spec: BCOS Native Executable File Format Specification
58: %define FILETYPE_BCOS_displayModule       (FILETYPE_BCOS_MAJOR << 16 | 0x1002)            ;Spec: BCOS Native Executable File Format Specification
59: %define FILETYPE_BCOS_CPUdetectionModule  (FILETYPE_BCOS_MAJOR << 16 | 0x1003)            ;Spec: BCOS Native Executable File Format Specification
60: %define FILETYPE_BCOS_CPUmemoryTestModule (FILETYPE_BCOS_MAJOR << 16 | 0x1004)            ;Spec: BCOS Native Executable File Format Specification
61: %define FILETYPE_BCOS_kernelModule1       (FILETYPE_BCOS_MAJOR << 16 | 0x1010)            ;Spec: BCOS Native Executable File Format Specification
62: %define FILETYPE_BCOS_kernelModule2       (FILETYPE_BCOS_MAJOR << 16 | 0x1011)            ;Spec: BCOS Native Executable File Format Specification
63: %define FILETYPE_BCOS_kernelModule3       (FILETYPE_BCOS_MAJOR << 16 | 0x1012)            ;Spec: BCOS Native Executable File Format Specification
64: %define FILETYPE_BCOS_kernelModule4       (FILETYPE_BCOS_MAJOR << 16 | 0x1013)            ;Spec: BCOS Native Executable File Format Specification
65: %define FILETYPE_BCOS_kernelModule5       (FILETYPE_BCOS_MAJOR << 16 | 0x1014)            ;Spec: BCOS Native Executable File Format Specification
66: %define FILETYPE_BCOS_kernelModule6       (FILETYPE_BCOS_MAJOR << 16 | 0x1015)            ;Spec: BCOS Native Executable File Format Specification
67: %define FILETYPE_BCOS_kernelModule7       (FILETYPE_BCOS_MAJOR << 16 | 0x1016)            ;Spec: BCOS Native Executable File Format Specification
68: %define FILETYPE_BCOS_kernelModule8       (FILETYPE_BCOS_MAJOR << 16 | 0x1017)            ;Spec: BCOS Native Executable File Format Specification
69: %define FILETYPE_BCOS_kernelModule9       (FILETYPE_BCOS_MAJOR << 16 | 0x1018)            ;Spec: BCOS Native Executable File Format Specification
70: %define FILETYPE_BCOS_kernelModule10      (FILETYPE_BCOS_MAJOR << 16 | 0x1019)            ;Spec: BCOS Native Executable File Format Specification
71: %define FILETYPE_BCOS_kernelModule11      (FILETYPE_BCOS_MAJOR << 16 | 0x101A)            ;Spec: BCOS Native Executable File Format Specification
72: %define FILETYPE_BCOS_kernelModule12      (FILETYPE_BCOS_MAJOR << 16 | 0x101B)            ;Spec: BCOS Native Executable File Format Specification
73: %define FILETYPE_BCOS_kernelModule13      (FILETYPE_BCOS_MAJOR << 16 | 0x101C)            ;Spec: BCOS Native Executable File Format Specification
74: %define FILETYPE_BCOS_kernelModule14      (FILETYPE_BCOS_MAJOR << 16 | 0x101D)            ;Spec: BCOS Native Executable File Format Specification
75: %define FILETYPE_BCOS_kernelModule15      (FILETYPE_BCOS_MAJOR << 16 | 0x101E)            ;Spec: BCOS Native Executable File Format Specification
76: %define FILETYPE_BCOS_kernelModule16      (FILETYPE_BCOS_MAJOR << 16 | 0x101F)            ;Spec: BCOS Native Executable File Format Specification


Generated on Mon Nov 9 12:27:35 2009