noxos (docs): defined ascii extension
This commit is contained in:
parent
a76303dd10
commit
3264604b0a
|
@ -1,8 +1,31 @@
|
||||||
---
|
---
|
||||||
title: "General Concepts"
|
title: "General Concepts"
|
||||||
summary: "The kernels' 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 |
|
||||||
|
|
Reference in New Issue