Update Specification.

Re-formatted as markdown.
Changed how flags are accessed.
Started flag documentation.
Added syscalls.
This commit is contained in:
2017-12-22 21:49:07 +00:00
parent ad50509f26
commit 7bd26502ff
3 changed files with 152 additions and 70 deletions

58
FLAGS.md Normal file
View File

@@ -0,0 +1,58 @@
# Flags
Locations shown below are relative to the start of flags, typically 0xFF00.
Bits marked N/A read as zero and writing values will not have an effect.
## Console
### Status | CONSTS | 0x00
| | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| --------------- | --- | --- | --- | --- | --- | --- | --- | --- |
| **Read/Write** | | | | | | | R/W | R |
| **Defaults** | | | | | | | 1 | X |
| **Name** | N/A | N/A | N/A | N/A | N/A | N/A | Enabled | Available |
### Cursor X | CONPOSX | 0x01
* 8-bit unsigned number
* Read/Write
### Cursor Y | CONPOSY | 0x02
* 8-bit unsigned number
* Read/Write
### Width | CONX | 0x03
* 8-bit unsigned number
* Read/Write
### Height | CONY | 0x04
* 8-bit unsigned number
* Read/Write
## ALU
Flags here for logic/math results
## Tape
Tape control and status
## Traps
Trap status and settings
<!--
### Name | ALIAS | 0x00
| | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| --------------- | --- | --- | --- | --- | --- | --- | --- | --- |
| **Read/Write** | | | | | | | | |
| **Defaults** | | | | | | | | |
| **Name** | | | | | | | | |
-->