hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/examples/load.hdass
diff options
context:
space:
mode:
Diffstat (limited to 'examples/load.hdass')
-rw-r--r--examples/load.hdass7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/load.hdass b/examples/load.hdass
index 8d29358..8f027ea 100644
--- a/examples/load.hdass
+++ b/examples/load.hdass
@@ -1,6 +1,5 @@
[entry: main]
-// Stores 7 into a stack cell, loads it back through a pointer, and exits with it.
const SYS_EXIT = 60
proc main
@@ -8,9 +7,9 @@ proc main
stack cell[8]
rbx = 7
- rsi = cell // address of the cell
- ^rsi = rbx // store
- rdi = ^rsi // load it back
+ rsi = cell
+ ^rsi = rbx
+ rdi = ^rsi
rax = SYS_EXIT
syscall