summaryrefslogtreecommitdiff
path: root/twasm/README.md
diff options
context:
space:
mode:
authorandromeda <andromeda@lenovo>2026-03-06 20:33:51 +0100
committerandromeda <andromeda@lenovo>2026-03-06 20:33:51 +0100
commit9c65697dd8119ec9cee13f57f870b07e305d27ec (patch)
tree27b61bd7a27df6e25db8b21dc0ee3daed01d79fb /twasm/README.md
parentfdf5bb9daf8574b7f993e2e38e400c35aedc3b96 (diff)
bunch of stuff idek
Diffstat (limited to 'twasm/README.md')
-rw-r--r--twasm/README.md32
1 files changed, 32 insertions, 0 deletions
diff --git a/twasm/README.md b/twasm/README.md
new file mode 100644
index 0000000..c7a2786
--- /dev/null
+++ b/twasm/README.md
@@ -0,0 +1,32 @@
+# twasm
+
+this will be a self hosted, very minimal subset of 64 bit asm
+
+### goals
+
+I want to compile Bootler and Twasm with the Twasm assembler
+
+### memory map
+
+```
++------ 0x00100000 ------+
+| hardware, bios stuff |
++------ 0x00080000 ------+
+| output binary |
++------ 0x00070000 ------+
+| token table |
++------ 0x00060000 ------+
+| |
+| |
++------------------------+
+| input |
++------------------------+ this is lined up to a sector
+| | and this is less than a sector
++------------------------+
+| assembler |
++------ 0x00010000 ------+
+| bootloader, bios, etc. |
++------------------------+
+```
+
+each word represents a token on the token table.