about summary refs log tree commit diff
path: root/execution.e
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@irenes.space>2026-09-10 06:41:22 -0700
committerIrene Knapp <ireneista@irenes.space>2026-09-10 06:41:22 -0700
commit7a0a28f4d8b738d305b826b5464b27255dd7def3 (patch)
tree0b14a86147b526842445f0e447ab8be35e13525b /execution.e
parenta46d5888321d859ed5c6698292fda45fd2633497 (diff)
add some magic comment commands to reorder subitems more generally
these are all fully working and debugged.

they have been used in a principled attempt to get all the parameter orders in amd64.e correct, but that effort needs to be verified carefully, which it hasn't been, yet.

a couple of missing magic comments in elf.e and execution.e were also added.

Force-Push: yes
Change-Id: Id4c48b121a71b4f945ee3718e14a06f07afd7304
Diffstat (limited to 'execution.e')
-rw-r--r--execution.e14
1 files changed, 7 insertions, 7 deletions
diff --git a/execution.e b/execution.e
index c6b6254..20064af 100644
--- a/execution.e
+++ b/execution.e
@@ -251,13 +251,13 @@
   ~ and the kernel would trust us, but this gives us more options for
   ~ interoperating with other runtimes.
   ~
-  9 :rax mov-reg64-imm64                      ~ mmap()
-  log-requested-address :rdi mov-reg64-imm64  ~ address (very arbitrary)
-  log-size :rsi mov-reg64-imm64               ~ size (one meg)
-  0x07 :rdx mov-reg64-imm64                   ~ protection (read+write+exec)
-  0x22 :r10 mov-extrareg64-imm64              ~ flags (private+anonymous)
-  0 :r8 mov-extrareg64-imm64                  ~ file descriptor (ignored)
-  0 :r9 mov-extrareg64-imm64                  ~ offset (ignored)
+  9 :rax mov-reg64-imm64                      ~ : mmap()
+  log-requested-address :rdi mov-reg64-imm64  ~ : address (very arbitrary)
+  log-size :rsi mov-reg64-imm64               ~ : size (one meg)
+  0x07 :rdx mov-reg64-imm64                   ~ : protection (read+write+exec)
+  0x22 :r10 mov-extrareg64-imm64              ~ : flags (private+anonymous)
+  0 :r8 mov-extrareg64-imm64                  ~ : file descriptor (ignored)
+  0 :r9 mov-extrareg64-imm64                  ~ : offset (ignored)
   syscall
 
   ~   The return value of the system call is in rax, we'll use it in a sec.