aboutsummaryrefslogtreecommitdiff
path: root/examples/table.asm
diff options
context:
space:
mode:
authorkrolxon <krolyxon@tutanota.com>2026-01-05 20:02:45 +0530
committerkrolxon <krolyxon@tutanota.com>2026-01-05 20:02:45 +0530
commit68d85406ef834312b39474c11be09e5ed1a228b4 (patch)
tree72abd67485bec09f401715dcd2e0495318cd8636 /examples/table.asm
parentdeac6a4448be93c3c70655cea821e84a7a1b116c (diff)
add table example
Diffstat (limited to 'examples/table.asm')
-rw-r--r--examples/table.asm9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/table.asm b/examples/table.asm
new file mode 100644
index 0000000..6ec079b
--- /dev/null
+++ b/examples/table.asm
@@ -0,0 +1,9 @@
+; Table of 3
+mov b, 3
+mov c, 10 ; Counter
+
+loop:
+ add a, b
+ sub c, 1
+ jnz loop
+hlt