diff options
| Commit | ae32b04764c6f9aa48c65bb6dc6050d211914ccf (patch) | |
|---|---|---|
| Author | 2022-11-24 00:12:56 +0200 | |
| Committer | 2022-11-24 00:12:56 +0200 | |
| Files | 6e97fb719799dd3d73e23613a5d58627637ff9bb | |
| IPL-ae32b04764c6f9aa48c65bb6dc6050d211914ccf.tar IPL-ae32b04764c6f9aa48c65bb6dc6050d211914ccf.tar.gz IPL-ae32b04764c6f9aa48c65bb6dc6050d211914ccf.zip | ||
| Parent | a46eb2a917fcb2b170eecdedf9bc03bf2519c5ce (diff) | |
1 files changed, 9 insertions, 12 deletions
| -rw-r--r-- | spasm/src/program.spa | 21 |
diff --git a/spasm/src/program.spa b/spasm/src/program.spa index d3149a1..57d777c 100644 --- a/spasm/src/program.spa +++ b/spasm/src/program.spa @@ -1,12 +1,9 @@ -read -label next -dup -push 1 -< -jmpt bye -push 1 -- -dup -print -jmp next -label bye +read 1
+const 2 1
+label next
+less 3 1 2
+jmpt 3 bye
+sub 1 1 2
+print 1
+jmp next
+label bye
|
