Index: alien/orcad/page.txt =================================================================== --- alien/orcad/page.txt (nonexistent) +++ alien/orcad/page.txt (revision 9406) @@ -0,0 +1,34 @@ +(little endian) + +The page file is a tree. The root of the tree is a page object. + +Page file structure: ++--------+----------------------------------------+ +|pri hdr | +----------+ +-----------+ +---------+ | +| | |aux hdr #1| |closing hdr| | payload | | +|9 bytes | |type=0xa | |type=0xa | | | | +| | | | |(MAGIC) | | | | +|type=0xa| +----------+ +-----------+ +---------+ | ++--------+----------------------------------------+ + + +Object structure: + Primary header is 9 bytes long: + - type: 1 byte + - len: 4 bytes + - unknown: 4 byte (usually all-zero) + Data: len number of bytes + +Payload may start with aux headers: + - this is recognised by the first byte matching the main header's type byte + - these subsequent headers do not allocate or address further data blocks + - the last header is the closing header and has a different structure: + - the length of this header is the length field of the previous header + - structure: + - type: 1 byte (matching the main header) + - the length of this header is known + - the last 8 bytes of this header is a magic number + 0xFF 0xE4 0x5C 0x39 0x00 0x00 0x00 0x00 + +Payload: + \ No newline at end of file