From 3264604b0a0871b4e5610b6da1e971ef6adc9231 Mon Sep 17 00:00:00 2001 From: antifallobst Date: Tue, 2 May 2023 22:49:35 +0200 Subject: [PATCH] noxos (docs): defined ascii extension --- .../projects/noxos/docs/general-concepts.md | 27 +++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/content/projects/noxos/docs/general-concepts.md b/content/projects/noxos/docs/general-concepts.md index 573af8d..c87da2f 100644 --- a/content/projects/noxos/docs/general-concepts.md +++ b/content/projects/noxos/docs/general-concepts.md @@ -1,8 +1,31 @@ --- title: "General Concepts" summary: "The kernels' general concepts" -date: 2023-03-14T20:59:16+01:00 -draft: true --- +# ASCII extension +noxos extends ascii to support special characters and commands. +The extension uses byte blocks in the following form: +``` ++----------+----------------+-------------------------------+-----------+ +| SHIFT IN | Length of Data | Data | SHIFT OUT | +| 1 byte | 2 bytes | +---------+-----------------+ | 1 byte | +| 0x0F | | | Command | Additional Data | | 0x0E | +| | | +---------+-----------------+ | | ++----------+----------------+-------------------------------+-----------+ + +``` + +**Commands:** + +| Name | ID | Data 1 | Data 2 | Data 3 | Data 3 | Status | +|------------------|------|--------------------------------------------------|--------------|--------------|--------------|--------| +| `clear` | 0x00 | | | | | N/A | +| `cursor_move` | 0x01 | direction (left: 0 / right: 1 / up: 2 / down: 3) | num | | | N/A | +| `cursor_set` | 0x02 | X position | Y position | | | N/A | +| `color_set` | 0x03 | Red | Green | Blue | | N/A | +| `color_reset` | 0x04 | | | | | N/A | +| `render_disable` | 0x05 | X position 1 | Y position 1 | X position 2 | Y position 2 | N/A | +| `render_enable` | 0x06 | X position 1 | Y position 1 | X position 2 | Y position 2 | N/A | +| `keyboard_echo` | 0x07 | status (enable: 0 / disable: 1) | | | | N/A |