aboutsummaryrefslogtreecommitdiff
path: root/examples/factorial.asm
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2024-04-16 15:38:24 +0630
committerAryadev Chavali <aryadev@aryadevchavali.com>2024-04-16 15:38:24 +0630
commit05136fdd25bf065f81ed20f74d402592a7c6e8f2 (patch)
tree7f8903864084d77b10f90912b6bf880cd6167078 /examples/factorial.asm
parent1e7f1bdee91324613a1675642775d6ed32d7e94d (diff)
downloadovm-05136fdd25bf065f81ed20f74d402592a7c6e8f2.tar.gz
ovm-05136fdd25bf065f81ed20f74d402592a7c6e8f2.tar.bz2
ovm-05136fdd25bf065f81ed20f74d402592a7c6e8f2.zip
Fixed examples for changes in lexer
Name assigned to %CONST is the next symbol in stream, not the symbol attached to it.
Diffstat (limited to 'examples/factorial.asm')
-rw-r--r--examples/factorial.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/factorial.asm b/examples/factorial.asm
index 54fc956..c4257e4 100644
--- a/examples/factorial.asm
+++ b/examples/factorial.asm
@@ -6,7 +6,7 @@
;; 65 which means that past 20! results are truncated and therefore
;; the program produces inaccurate factorials.
- %const(limit) 20 %end
+ %const limit 20 %end
;; Setup entrypoint
global main