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/mul_div.hdass | |
| parent | c0f000ea166a24781fcdbf23c080b203cd9b8ed7 (diff) | |
chore: refactor
Diffstat (limited to 'examples/mul_div.hdass')
| -rw-r--r-- | examples/mul_div.hdass | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/mul_div.hdass b/examples/mul_div.hdass index 8c813b6..43a1357 100644 --- a/examples/mul_div.hdass +++ b/examples/mul_div.hdass @@ -1,17 +1,15 @@ [entry: main] -// (7 * 6) / 5 = 8 with a value-expression multiply and a non-rax division, -// returned as the exit status. const SYS_EXIT = 60 proc main { rbx = 7 rcx = 6 - rbx = rbx * rcx // 42 + rbx = rbx * rcx rcx = 5 - rbx /= rcx // 8 + rbx /= rcx rdi = rbx rax = SYS_EXIT |
