summary refs log tree commit diff
path: root/execution.e
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2026-05-22 00:29:03 -0700
committerIrene Knapp <ireneista@irenes.space>2026-05-22 00:29:03 -0700
commited702c3b88953112a3682c818a6e801549e1b461 (patch)
treef53e5e9c1ac40250552ba0f9cb6e627cd8caeb9e /execution.e
parent5ae0fdad3c7df2fc02acfc3b8f36d96c5d07bcd4 (diff)
it runs!!!!!! it interactively reads input and everything
only some of that actually works, but hey, it's a start

Force-Push: yes
Change-Id: Ib82beb695be1a18de8aaaf3040b7c632851c6002
Diffstat (limited to 'execution.e')
-rw-r--r--execution.e16
1 files changed, 11 insertions, 5 deletions
diff --git a/execution.e b/execution.e
index ce4c2c4..0aa5491 100644
--- a/execution.e
+++ b/execution.e
@@ -483,11 +483,17 @@
 
   ~   Now everything we need has been added to the log and we're almost ready
   ~ to jump into it. It's inconvenient for code under the log-load transform
-  ~ to interact with the label system, so we initialize main-input-buffer
-  ~ here.
-  ~
-  ~ TODO or not ;)
-  ~ main-input-buffer boot-source attach-string-to-input-buffer
+  ~ to interact with the label system, so if we want to point
+  ~ main-input-buffer at a string, this is the place to do it.
+
+  ~ The next layer is built now, so let's move on to it.
+  L@' litstring offset-to-target-address-space pack64
+  s" quit" packstring 8 packalign
+  L@' log-load-find-execution-token offset-to-target-address-space pack64
+  L@' swap offset-to-target-address-space pack64
+  ~ Get rid of that heap pointer on the stack, we're finally done with it!
+  L@' drop offset-to-target-address-space pack64
+  L@' execute offset-to-target-address-space pack64
   ;