Commits

David Boddie committed 42e926c

Added some more notes. About to switch markup format to Wiki-style.

  • Participants
  • Parent commits 5b6d9cc

Comments (0)

Files changed (1)

File Notes/Notes.txt

   0000:0310 40 03 00 00 1c 00 00 00 7e 03 00 00 11 00 00 00 @.......~.......
 
 
-The pattern which emerges for the definition of a style is therefore::
+The pattern which emerges for the definition of a style is therefore:
 
   * a length byte for the style string
   * six bytes of undetermined use
 
 
 
-Offsets
--------
+Header offsets
+--------------
 Having established, or at least asserted, that the end of the "style index"
 is given by the value (word) at 020 in the file, let us examine other values
 at the start of the file to determine something about the structure of the
      end of style index |           |           12 bytes later (0x08)
   after the document text (0x08)    12 bytes later (0x08)
 
-While the byte referred to a 304 is 0x38, the bytes found at the other
+While the byte referred to a 0304 is 0x38, the bytes found at the other
 locations typically contain 0x08.
 
+The data after 0304 but before 07d2 contains the document text.
+
   0000:0030 f6 07 00 00 01 0a 00 00 0d 0a 00 00 b5 0d 00 00 �...........�...
             ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^
   12 bytes later (0x08) |           |           
 
 It is possible that the 0x00060006 value and other similar values represent
 unused entries in a heap of some sort.
+
+
+A pattern emerges for the offsets in the header::
+
+ +-----------+-------------------------------------------------------------+
+ | Offset    | Contents                                                    |
+ +===========+=============================================================+
+ | 0000:0020 | offset to after the style index (before the text)           |
+ +-----------+-------------------------------------------------------------+
+ | 0000:0024 | unknown                                                     |
+ | ......... |                                                             |
+ +-----------+-------------------------------------------------------------+
+ | 0000:0038 | style definitions table                                     |
+ +-----------+-------------------------------------------------------------+
+ | 0000:003c | offsets into style definitions                              |                                                             |
+ | ......... |                                                             |
+ +-----------+-------------------------------------------------------------+
+ | 0000:0058 | other data                                                  |
+ +-----------+-------------------------------------------------------------+
+
+Note that in the Models file, the offset at 58 refers to data later in the
+file which includes a Drawfile.
+
+
+
+
+
+Style definitions table
+-----------------------
+Let us examine the table referred to by the relevant header offset at 38::
+
+  0000:0a00 00 08 00 00 00 00 00 00 01 00 00 00 00 b0 00 00 .............�..
+  0000:0a10 00 00 00 00 01 00 00 00 00 c1 0a 00 00 0d 00 00 .........�......
+  0000:0a20 00 db 0a 00 00 1c 00 00 00 04 0b 00 00 0d 00 00 .�..............
+  0000:0a30 00 30 0b 00 00 0d 00 00 00 5c 0b 00 00 0d 00 00 .0.......\......
+  0000:0a40 00 87 0b 00 00 13 00 00 00 bd 0b 00 00 12 00 00 .........�......
+  0000:0a50 00 ed 0b 00 00 14 00 00 00 18 0c 00 00 16 00 00 .�..............
+  0000:0a60 00 49 0c 00 00 0d 00 00 00 6c 0c 00 00 0d 00 00 .I.......l......
+  0000:0a70 00 98 0c 00 00 0d 00 00 00 c3 0c 00 00 0d 00 00 .........�......
+  0000:0a80 00 ee 0c 00 00 0d 00 00 00 09 0d 00 00 1d 00 00 .�..............
+  0000:0a90 00 3f 0d 00 00 0d 00 00 00 5d 0d 00 00 0d 00 00 .?.......]......
+  0000:0aa0 00 13 00 00 80 00 00 00 00 14 00 00 80 00 00 00 ................
+  0000:0ab0 00 00 00 00 80 00 00 00 00 89 0d 00 00 0d 00 00 ................
+  0000:0ac0 00 00 00 00 00 00 00 00 00 00 00 00 00 08 00 00 ................
+
+Style definitions
+-----------------
+The definitions at