pull/1/head
ondra05 2023-06-12 00:39:50 +02:00
parent e17f8eb5d8
commit fb12313c18
No known key found for this signature in database
GPG Key ID: 0DA6D2BB2285E881
1 changed files with 11 additions and 0 deletions

11
spec.md
View File

@ -239,3 +239,14 @@
| StoreAccessEx | Accessed address | Storing to invalid address |
| InvalidOpcode | Loaded opcode | Executing invalid opcode |
| Ecall | None | Ecall instruction |
# Assembly
HoleyBytes assembly format is not defined, this is just a weak description
of `hbasm` syntax.
- Opcode names correspond to specified opcode names, lowercase (`nop`)
- Parameters are separated by comma (`addi r0, 1`)
- Instructions are separated by either line feed or semicolon
- Registers are represented by `r` followed by the number (`r10`)
- Labels are defined by label name followed with colon (`loop:`)
- Labels are references simply by their name (`print`)