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
Aryadev Chavali
5d800d4366
Moved inst module to lib
...
As it has no dependencies on vm specifically, and it's more necessary
for any vendors who wish to target the virtual machine, it makes more
sense for inst to be a lib module rather than a vm module.
2023-10-31 21:14:14 +00:00
Aryadev Chavali
228f548bd9
Changed asm/parser instruction push-reg->push.reg
2023-10-31 20:37:11 +00:00
Aryadev Chavali
7c367f95c9
Added some examples to instruction-test for positive/negative literals
...
Use the push.* instructions to see this.
2023-10-29 16:56:19 +00:00
Aryadev Chavali
025b26b877
Introduced an example source file for all instructions
...
Provides calling conventions, ensures parser and lexer are working
correctly. Will be updated as more instructions are introduced and
supported in the assembler.
2023-10-29 16:56:19 +00:00
Aryadev Chavali
1177a5a45b
Auto-fill copyright notice in examples/fib.c
2023-10-29 16:56:19 +00:00
Aryadev Chavali
42ac28d44a
Make root directory an include path, set #include's properly
...
Easier to write includes now just using < with the module name, in
comparison to using relative paths.
2023-10-23 04:46:09 +01:00
Aryadev Chavali
0ac634a9be
Reintroduced example fib.c via examples/ folder
2023-10-23 04:25:48 +01:00