diff options
| author | hachem <im@hachem.wtf> | 2026-09-03 03:36:06 +0200 |
|---|---|---|
| committer | hachem <im@hachem.wtf> | 2026-09-03 03:36:06 +0200 |
| commit | 56ba8b2a373dd1386950592bda9c68ff9f25c203 (patch) | |
| tree | e33d46037b8a0cb25f5c9052d1f2ee3b143dff22 /examples/modulo.hdass | |
| parent | 9956f626110a5b55fc58049bbe5841a98e941614 (diff) | |
fix: i JUST started using a static analyzer for ts
Diffstat (limited to 'examples/modulo.hdass')
| -rw-r--r-- | examples/modulo.hdass | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/modulo.hdass b/examples/modulo.hdass new file mode 100644 index 0000000..44c290d --- /dev/null +++ b/examples/modulo.hdass @@ -0,0 +1,15 @@ +[entry: main] + +// Modulo: 2024 % 100 = 24, returned as the exit status. +const SYS_EXIT = 60 + +proc main +{ + rax = 2024 + rbx = 100 + rax %= rbx + + rdi = rax + rax = SYS_EXIT + syscall +} |
