diff options
author | itsme <itsme@xs4all.nl> | 2021-07-07 02:56:49 +0200 |
---|---|---|
committer | itsme <itsme@xs4all.nl> | 2021-07-07 02:56:49 +0200 |
commit | 1604864c258cbe455bff6b46c8622cc58d14c1e9 (patch) | |
tree | a5a1b703ba222a1b2101b73903b5d14e791028fd /docs/cronos-research.md | |
parent | 15099fc4fff9437da9104f67c33e4a92ed15a76f (diff) |
added note about Stru structure
Diffstat (limited to 'docs/cronos-research.md')
-rw-r--r-- | docs/cronos-research.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/cronos-research.md b/docs/cronos-research.md index 517137c..75b9c61 100644 --- a/docs/cronos-research.md +++ b/docs/cronos-research.md | |||
@@ -121,3 +121,18 @@ CroBank.dat contains the actual database entries for multiple tables as describe | |||
121 | 121 | ||
122 | Its first byte defines, which table it belongs to. It is encoded in cp1251 (or possibly IBM866) with actual column data separated by 0xfe. There is an extra concept of sub fields in those columns, indicated by a 0xfd byte. | 122 | Its first byte defines, which table it belongs to. It is encoded in cp1251 (or possibly IBM866) with actual column data separated by 0xfe. There is an extra concept of sub fields in those columns, indicated by a 0xfd byte. |
123 | 123 | ||
124 | |||
125 | ## structure definitions | ||
126 | |||
127 | records start numbering at '1'. | ||
128 | |||
129 | The first entry contains: | ||
130 | |||
131 | byte | ||
132 | array { | ||
133 | byte strlen | ||
134 | char name[strlen] | ||
135 | uint32_t index_or_size; // size when bit31 is set. | ||
136 | byte data[size] | ||
137 | } | ||
138 | |||