diff options
| Commit | 9c590f68332ec562285e3df2a99c18887e3bcde5 (patch) | |
|---|---|---|
| Author | 2020-10-26 21:02:16 +0200 | |
| Committer | 2020-11-03 17:59:55 +0200 | |
| Files | e1b02eb2995188c02db8a083b6ce28f89026020c | |
| IPL-9c590f68332ec562285e3df2a99c18887e3bcde5.tar IPL-9c590f68332ec562285e3df2a99c18887e3bcde5.tar.gz IPL-9c590f68332ec562285e3df2a99c18887e3bcde5.zip | ||
| Parent | caa0952182984f866061a9e45cb55a06d3da5e87 (diff) | |
Fix some errors in the vm_intro slides
1 files changed, 3 insertions, 1 deletions
| -rw-r--r-- | website/content/slides/05_vm_intro/_index.md | 4 |
diff --git a/website/content/slides/05_vm_intro/_index.md b/website/content/slides/05_vm_intro/_index.md index 5ee5e73..2879fa1 100644 --- a/website/content/slides/05_vm_intro/_index.md +++ b/website/content/slides/05_vm_intro/_index.md @@ -27,6 +27,7 @@ outputs: ["Reveal"] - Implement a computational model - Just like real machines AKA computers - run on top of the real machine +- you can have a hardware implementation of VM --- @@ -282,6 +283,7 @@ Instructions will be between 1 and 25 bytes. - 6 bits for OpCode - we have up to 64 opcodes - 2 bits - n - length of the arguments - 2^n bytes per agrument + - up to 3 arguments per instruction --- ### Instruction set @@ -297,7 +299,7 @@ https://docs.google.com/spreadsheets/d/1Q90x60BF-7T0jqPngScsjlaGBXXHRx4tszwCTSRY - 0 - count of arguments - -1 - first argument - -n - n-th argument -4. caller calls `ret reg`, which removes all locals and arguments and leaves +4. callee calls `ret reg`, which removes all locals and arguments and leaves `reg` on top of the stack 5. caller pops the result from the stack |
