aboutsummaryrefslogtreecommitdiff
path: root/todo.org
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-11-03 21:23:19 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-11-03 21:23:19 +0000
commit232252c2521d87f4148942a5154167be948183bb (patch)
tree32e7bf3d4da9de9357f07bb2102a21ea08ab3dbb /todo.org
parent3fde04e1d2e0fba7a81718f3a7695d19920291b9 (diff)
downloadovm-232252c2521d87f4148942a5154167be948183bb.tar.gz
ovm-232252c2521d87f4148942a5154167be948183bb.tar.bz2
ovm-232252c2521d87f4148942a5154167be948183bb.zip
Completed start points TODO
Diffstat (limited to 'todo.org')
-rw-r--r--todo.org30
1 files changed, 15 insertions, 15 deletions
diff --git a/todo.org b/todo.org
index 9462c7b..5776ab4 100644
--- a/todo.org
+++ b/todo.org
@@ -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