summaryrefslogtreecommitdiff
path: root/image_format.txt
diff options
context:
space:
mode:
authorDuncan Smith2010-07-02 23:12:22 -0700
committerDuncan Smith2010-07-02 23:12:22 -0700
commit83ed624bf8966204768a2766c58744dc06685e02 (patch)
tree368843898ded617157041cc3b297138c8e48f882 /image_format.txt
parente8fa5ad889869095cc82c19705e479480bd98e1e (diff)
Created initial spec for image format
Diffstat (limited to 'image_format.txt')
-rw-r--r--image_format.txt42
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