10 Commits
Author SHA1 Message Date
Gelthor 4801520424 Split framebuffer stride into stride and depth
Stride is now U16, depth is U16, and stores the bits per pixel of the
buffer.
2026-09-06 17:37:49 +01:00
Gelthor 1ba70f10cd Merge remote-tracking branch 'origin/main' into graphics 2026-09-06 16:26:55 +01:00
Gelthor ca5cff0a79 Function premble should list error codes, if any 2026-09-06 16:25:40 +01:00
Gelthor 7368044335 Global addresses now in hex and listed in order 2026-09-06 15:49:23 +01:00
Gelthor 21deca64fd Remove graphics code from this PR 2026-09-06 15:48:37 +01:00
Gelthor b63af2f15a merge upstream 2026-09-06 12:14:49 +02:00
Gelthor 46abf8d893 Add globals and error codes
Added support for global variables.

This requires including `start.asm` as the first code. This includes
a `jmp` to 0x100 for user code, and a magic number that modules
can check to verify th the user has correctly reserved the space.

The magic number is 0xb301534c:

* This has the high bit set so is not a valid instruction

* On builds that ignore the high bit this decodes to `nor zr, zr,
  0x534c` a no-op.

* The immediate is "SL" for standardl ibrary.

Due to a bug start pads with U... 0, instead of @addr.

`start.asm` also initialises `sp` so it start just below the 64KiB LUT
memory alocation.

Added some error codes for the upcoming graphics module.
2026-09-06 11:02:27 +01:00
Gelthor 04f3f03ad5 Moved new *.asm files into src/
v
2026-09-04 16:42:35 +01:00
Gelthor 39ff477f6e Merge remote-tracking branch 'gelthor' into graphics 2026-09-04 16:09:51 +01:00
Gelthor 4d752ef67c Added initial draft of globals and errno 2026-09-04 16:07:24 +01:00