Skip to content

Commit e02f534

Browse files
committed
Fix the table
1 parent 69bbb40 commit e02f534

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

alt/scheme/README.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,17 @@ can implement your own "keyDown" and "drawChar" operations using `(peek 4095)` a
4646

4747
## Memory Layout
4848

49-
| Address | Label | Contents | Description |
50-
| 0 | `interpreter.static_stack` | SP | Address of the cons list that represents the stack: i.e. a "pair" rib which contains the value at the top of the stack and points to the next entry. |
51-
| 1 | `interpreter.static_pc` | PC | Address of the rib currently being interpreted. |
52-
| 2 | `interpreter.static_nextRib` | NEXT_RIB | Address where the next allocation will occur. |
49+
| Address | Jack | Assembly | Description |
50+
|---------|----------------------------------|----------|-------------|
51+
| 0 | `Interpreter.stack` | `SP` | Address of the cons list that represents the stack: i.e. a "pair" rib which contains the value at the top of the stack and points to the next entry. |
52+
| 1 | `Interpreter.pc` | `PC` | Address of the rib currently being interpreted. |
53+
| 2 | `Interpreter.nextRib` | `NEXT_RIB` | Address where the next allocation will occur. |
5354
| ... | | | TBD: values used by the garbage collector to keep track of free space. |
5455
| 256– | | | Jack stack. |
55-
| 1936–2015 | `interpreter.static_bufferStart`/`End` | | Space to store a line of input from the keyboard. |
56-
| 2016–2047 | `interpreter.static_handlers` | | Function pointer for each primitive handler. |
57-
| 2048-4048 | | | Screen buffer: 80x25 characters. |
58-
| 4095 | | KEYBOARD | Mapped to the keyboard for input and "tty" for output. |
56+
| 1936–2015 | `Interpreter.bufferStart`/`End` | | Space to store a line of input from the keyboard. |
57+
| 2016–2047 | `Interpreter.handlers` | | Function pointer for each primitive handler. |
58+
| 2048-4048 | | `SCREEN` | Screen buffer: 80x25 characters. |
59+
| 4095 | | `KEYBOARD` | Mapped to the keyboard for input and "tty" for output. |
5960
| 4096–32767 | | | ROM: interpreter, symbol names, instructions. |
6061
| 32768–65536 | | | Heap. |
6162

0 commit comments

Comments
 (0)