mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
Emscripten expects 32 and 16-bit memory accesses to be aligned. This happens automatically most of the time, but in the case of our Storage class, where we happen to read uint16_t out of a char array, memory accesses might not be aligned. In that case, we rebuild the uint16_t manually out of two bytes.
ION is the hardware abstraction layer. It does I/O. It exposes a set of headers that are implemented for various hardwares (device, simulator). It is also responsible for setting up the boot environment.