aboutsummaryrefslogtreecommitdiff
path: root/examples/call.asm
diff options
context:
space:
mode:
Diffstat (limited to 'examples/call.asm')
-rw-r--r--examples/call.asm7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/call.asm b/examples/call.asm
new file mode 100644
index 0000000..a6557c8
--- /dev/null
+++ b/examples/call.asm
@@ -0,0 +1,7 @@
+mov a, 2
+call square
+hlt
+
+square:
+ mul a, a
+ ret