diff options
| author | hachem <im@hachem.wtf> | 2026-10-12 11:41:05 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-10-12 11:41:05 +0200 |
| commit | 62636576bce8e8121a3d70f63547fae40a52f697 (patch) | |
| tree | 077dfe4f04235cce63b7abb1b05bb539232ae74a /examples/load.hdass | |
| parent | c0f000ea166a24781fcdbf23c080b203cd9b8ed7 (diff) | |
chore: refactor
Diffstat (limited to 'examples/load.hdass')
| -rw-r--r-- | examples/load.hdass | 7 |
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 |
