diff options
| author | Astrid Smith | 2010-07-02 23:12:22 -0700 |
|---|---|---|
| committer | Astrid Smith | 2010-07-02 23:12:22 -0700 |
| commit | 3f191892ed3dd8a9f8ad81cb039468d3ef2aa172 (patch) | |
| tree | 6825262865e5fac510a89d22e2d1c0d3b8334881 /image_format.txt | |
| parent | e93c37cdd00300abc6b12c014bd910a71b7463ab (diff) | |
Created initial spec for image format
Diffstat (limited to 'image_format.txt')
| -rw-r--r-- | image_format.txt | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/image_format.txt b/image_format.txt new file mode 100644 index 0000000..f2befa7 --- /dev/null +++ b/image_format.txt @@ -0,0 +1,42 @@ +This file best viewed in Emacs' -*- outline-mode -*-. + +Each image is split into many files. One for each 16k page, with +header information. Also one descriptor file, containing pointers to +the page files. This way multiple images can share the same data. + +* Fields in the page image header: + +** Magic number + 0x0680 +** Size (page only) + 0x4000 +** Checksum + CRC-16 of the whole page +** Version + string-32, 0-terminated +** Page number + Byte +** Calculator model + Byte, some undefined enum + +* Fields in the descriptor file: + +** Header +*** Magic Number + 0x1680 +*** Size +*** Name + string-32, 0-terminated + +** Data + List of these records: +*** Page number + word + 0x00?? for a real page + 0xffff for final record +*** Checksum + word +*** Version + string-32, 0-term +*** Calculator model + Byte, same undefined enum |
