From 62636576bce8e8121a3d70f63547fae40a52f697 Mon Sep 17 00:00:00 2001 From: hachem Date: Mon, 12 Oct 2026 11:41:05 +0200 Subject: chore: refactor --- examples/loop_sum.hdass | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples/loop_sum.hdass') diff --git a/examples/loop_sum.hdass b/examples/loop_sum.hdass index 130f055..7d9acdd 100644 --- a/examples/loop_sum.hdass +++ b/examples/loop_sum.hdass @@ -1,12 +1,11 @@ [entry: main] -// Sums 5 + 4 + 3 + 2 + 1 = 15 with a countdown loop, returns it as the status. const SYS_EXIT = 60 proc main { - rbx = 0 // running total - rcx = 5 // counter + rbx = 0 + rcx = 5 while .countdown rcx > 0 { -- cgit v1.3