From 62636576bce8e8121a3d70f63547fae40a52f697 Mon Sep 17 00:00:00 2001 From: hachem Date: Mon, 12 Oct 2026 11:41:05 +0200 Subject: chore: refactor --- examples/load.hdass | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'examples/load.hdass') 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 -- cgit v1.3