GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing makecode.com — Source Embedding Source EmbeddingThe sources of a program can be embedded in HEX file, or any other format. They are flashed with the program on the device, so if the device supports read-back they can be recovered from there. This specification is in terms of the contents of the flash of the device, not the particular file format, HEX or otherwise. Binary HeaderThe header is aligned to 16 bytes, and sits somewhere in the flash. All numbers are unsigned little endian integers.
Note that text length is not naturally aligned. This is due to historical reasons (it used to be 16 bit long). What follows is the JSON header and the text (possibly compressed), both with the specified length. JSON headerThe JSON header is UTF8 encoded JSON with the following fields:
Compression field specifies the encoding of the text section. It can have one of the following values:
Editors should always check if the project was meant for them (ie., There may be other fields, which are editor-specific. This header should be kept small, since it is not compressed. TextThe interpretation of this section is editor-specific. In case of PXT, the text is always LZMA compressed. If In case of a scripting language, the text can be raw, uncompressed, and used straight by the interpreter. CaveatsOlder versions of PXT and Touch Develop (as implemented in the legacy micro:bit programming
environment) didn't use If the source is too large for the flash size it is not embedded. | |||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |