summaryrefslogtreecommitdiff
path: root/twasm/README.md
blob: c7a2786423cdf89a44197a56c92a2a14bba71616 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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.