projects
/
screensavers
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added ability to directly embed NED programs in NEDsim binary for runtime execution.
[screensavers]
/
hacks
/
NEDsim
/
ned_programs
/
integer_stack.ned_asm
diff --git a/hacks/NEDsim/ned_programs/integer_stack.ned_asm
b/hacks/NEDsim/ned_programs/integer_stack.ned_asm
new file mode 100644
(file)
index 0000000..
d3285e8
--- /dev/null
+++ b/
hacks/NEDsim/ned_programs/integer_stack.ned_asm
@@ -0,0
+1,12
@@
+# (c) 2021 Aaron Taylor <ataylor at subgeniuskitty dot com>
+# See LICENSE.txt file for copyright and license details.
+
+# Starting at 1, build the positive integers on the stack.
+
+IM_1
+loop
+ LDSP+0
+ IM_1
+ ADD
+ JMP>loop
+HALT