Aryadev Chavali
05136fdd25
Fixed examples for changes in lexer
...
Name assigned to %CONST is the next symbol in stream, not the symbol
attached to it.
2024-04-16 15:38:24 +06:30
Aryadev Chavali
04a27bcfec
Use a limit on $I rather than on $B for examples/fib.asm
2023-11-29 23:14:01 +00:00
Aryadev Chavali
fa3ecc0073
Easier to read documentation in examples
2023-11-29 17:00:39 +00:00
Aryadev Chavali
bd6fb54e31
Use constants in examples where possible
...
Stuff like numeric limits can be codified in constants which act self
documenting.
2023-11-09 08:52:28 +00:00
Aryadev Chavali
dc047fd69b
Fixed up example comments and some assembly
2023-11-04 06:40:14 +00:00
Aryadev Chavali
32ee84ef70
Used more subroutines in fib.asm to make code clearer
...
Looks way more high level but parses down to a very simple bytecode.
However, because of lack of inline code processing, it relies on the
call stack quite heavily. With inline labels this would be a much
more compact bytecode.
2023-11-03 21:49:40 +00:00
Aryadev Chavali
bc4c57b243
Use label features and entry points for examples
2023-11-03 21:27:18 +00:00
Aryadev Chavali
d521871b98
Removed the index printing in fib.asm
2023-11-01 18:12:27 +00:00
Aryadev Chavali
809cc1b26a
examples/fib.asm now terminates on a very large bound
...
This is using the comparators and a jump-if
2023-11-01 17:55:34 +00:00
Aryadev Chavali
0bab4ec014
Made an example translation of fib.c to the custom assembly (fib.asm)
2023-11-01 16:39:07 +00:00