added comment support

This commit is contained in:
nora 2021-09-19 14:23:28 +02:00
parent a24b93fd23
commit fc974548ab
3 changed files with 14 additions and 5 deletions

View file

@ -17,5 +17,7 @@ Usage: `$ ./m8db (filename)`
* `IS_ZERO r line`
* `.labelname`
`# anything` is a comment
Where `r` is a register number, `line` is a line number and `label` is a label name.
`IS_ZERO` jumps to `label` if `r` is zero