Added ATOR VM instruction.

This commit is contained in:
Bobbi Webber-Manners 2018-05-02 22:25:44 -04:00 committed by GitHub
parent f22f303c80
commit 5a4fa67d1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -868,6 +868,7 @@ The call stack is used for all memory allocation within the virtual machine, as
| PSHB | Push 8 bit value in X onto call stack. Drop X. |
| SPTOFP | Copy stack pointer to frame pointer. (Enter function scope) |
| FPTOSP | Copy frame pointer to stack pointer. (Release local vars) |
| ATOR | Convert absolute address in X to FP-relative address |
| RTOA | Convert FP-relative address in X to absolute address |
| INC | `X = X+1`. |
| DEC | `X = X-1`. |