From 56ba8b2a373dd1386950592bda9c68ff9f25c203 Mon Sep 17 00:00:00 2001 From: hachem Date: Thu, 3 Sep 2026 03:36:06 +0200 Subject: fix: i JUST started using a static analyzer for ts --- examples/modulo.hdass | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 examples/modulo.hdass (limited to 'examples') 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 +} -- cgit v1.3