From 83ed624bf8966204768a2766c58744dc06685e02 Mon Sep 17 00:00:00 2001 From: Duncan Smith Date: Fri, 2 Jul 2010 23:12:22 -0700 Subject: Created initial spec for image format --- image_format.txt | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 image_format.txt 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 -- cgit v1.2.3