change spec

wip/its-not-my-fault
ondra05 2023-06-21 00:12:43 +02:00
parent 3e54734b90
commit 47b645157c
No known key found for this signature in database
GPG Key ID: 0DA6D2BB2285E881
1 changed files with 9 additions and 6 deletions

15
spec.md
View File

@ -249,12 +249,15 @@
- Program can be validaded either before execution or when executing
# Traps
| Name | Parameters | Cause |
|:-------------:|:----------------:|:--------------------------:|
| LoadAccessEx | Accessed address | Loading invalid address |
| StoreAccessEx | Accessed address | Storing to invalid address |
| InvalidOpcode | Loaded opcode | Executing invalid opcode |
| Ecall | None | Ecall instruction |
Program should at least implement these traps:
- Environment call
- Invalid instruction exception
- Load address exception
- Store address exception
and executing environment should be able to get information about them,
like the opcode of invalid instruction or attempted address to load/store.
Details about these are left as an implementation detail.
# Assembly
HoleyBytes assembly format is not defined, this is just a weak description