diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-03 21:23:19 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2023-11-03 21:23:19 +0000 |
commit | 232252c2521d87f4148942a5154167be948183bb (patch) | |
tree | 32e7bf3d4da9de9357f07bb2102a21ea08ab3dbb | |
parent | 3fde04e1d2e0fba7a81718f3a7695d19920291b9 (diff) | |
download | ovm-232252c2521d87f4148942a5154167be948183bb.tar.gz ovm-232252c2521d87f4148942a5154167be948183bb.tar.bz2 ovm-232252c2521d87f4148942a5154167be948183bb.zip |
Completed start points TODO
-rw-r--r-- | todo.org | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -2,21 +2,6 @@ #+author: Aryadev Chavali #+date: 2023-11-02 -* TODO Start points -You know how in standard assembly you can write -#+begin_src asm - global _start -_start: - ... -#+end_src -and that means the label ~_start~ is the point the program should -start from. This means the user can define other code anywhere in the -program and specify something similar to "main" in C programs. - -Proposed syntax: -#+begin_src asm - init <label> -#+end_src * TODO Standard library I should start considering this and how a user may use it. Should it be an option in the VM and/or assembler binaries (i.e. a flag) or @@ -82,3 +67,18 @@ There are two ways I can think of achieving this: + This simulates the notion of "calling" and "returning from" a function in classical languages, but requires more machinery on the VM side. +** DONE Start points +You know how in standard assembly you can write +#+begin_src asm + global _start +_start: + ... +#+end_src +and that means the label ~_start~ is the point the program should +start from. This means the user can define other code anywhere in the +program and specify something similar to "main" in C programs. + +Proposed syntax: +#+begin_src asm + init <label> +#+end_src |