aboutsummaryrefslogtreecommitdiff
path: root/examples/fib.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/fib.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/fib.asm')
-rw-r--r--examples/fib.asm10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/fib.asm b/examples/fib.asm
index 0a9e969..7f4c360 100644
--- a/examples/fib.asm
+++ b/examples/fib.asm
@@ -5,26 +5,26 @@
;;; stack version.
;; Constants
- %const(limit) 93 %end
+ %const limit 93 %end
- %const(increment_i)
+ %const increment_i
push.reg.word 2
push.word 1
plus.word
mov.word 2
%end
- %const(print_i)
+ %const print_i
push.reg.word 2
print.word
%end
- %const(print_reg_0)
+ %const print_reg_0
push.reg.word 0
print.word
%end
- %const(print_reg_1)
+ %const print_reg_1
push.reg.word 1
print.word
%end