diff options
| author | krolxon <krolyxon@tutanota.com> | 2026-01-05 20:02:45 +0530 |
|---|---|---|
| committer | krolxon <krolyxon@tutanota.com> | 2026-01-05 20:02:45 +0530 |
| commit | 68d85406ef834312b39474c11be09e5ed1a228b4 (patch) | |
| tree | 72abd67485bec09f401715dcd2e0495318cd8636 /examples/arithmetic.asm | |
| parent | deac6a4448be93c3c70655cea821e84a7a1b116c (diff) | |
add table example
Diffstat (limited to 'examples/arithmetic.asm')
| -rw-r--r-- | examples/arithmetic.asm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/arithmetic.asm b/examples/arithmetic.asm new file mode 100644 index 0000000..ea2d317 --- /dev/null +++ b/examples/arithmetic.asm @@ -0,0 +1,9 @@ +; move imm 10 to register A +mov a, 10 +; move imm 5 to register B +mov b, 5 +; Add a & B +add a, 2 +sub a, 2 +; Halt +hlt |
