aboutsummaryrefslogtreecommitdiff
path: root/samples/move.orgaasm
diff options
context:
space:
mode:
Diffstat (limited to 'samples/move.orgaasm')
-rw-r--r--samples/move.orgaasm22
1 files changed, 3 insertions, 19 deletions
diff --git a/samples/move.orgaasm b/samples/move.orgaasm
index c73e0e7..fed1626 100644
--- a/samples/move.orgaasm
+++ b/samples/move.orgaasm
@@ -1,3 +1,6 @@
+JMP ,main
+include(std.orgaasm)
+
@main
SLP
/input/update
@@ -54,22 +57,3 @@
#0007 LSF ADD -Screen ADD
STA
RET
-
-@clamp ( min max a -- b )
- /min /max RET
-
-@min ( a b -- a < b ? a : b )
- OVR OVR LTH
- JNZ ,min/morethan
- SWP
-@min/morethan
- POP
- RET
-
-@max ( a b -- a > b ? a : b )
- OVR OVR GTH
- JNZ ,max/lessthan
- SWP
-@max/lessthan
- POP
- RET