Momo: stack machine, part 1

This commit is contained in:
tildearrow 2024-06-03 20:11:07 -05:00
parent 118103b8af
commit 2320106f73
2 changed files with 258 additions and 13 deletions

View file

@ -5,7 +5,7 @@ the following document describes the stack machine used to get the correct plura
```
op | description
---|--------------------
00 | exit
00 | end
01 | push imm
02 | push N
03 | add
@ -21,6 +21,7 @@ op | description
0d | cmp le
0e | cmp and
0f | cmp or
10 | true imm
11 | false imm
10 | beq off
11 | bne off
12 | exit
```