aboutsummaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)Author
2023-11-04Fixed up example comments and some assemblyAryadev Chavali
2023-11-03Used more subroutines in fib.asm to make code clearerAryadev Chavali
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-03Use label features and entry points for examplesAryadev Chavali
2023-11-03Made test.asm an example asm programAryadev Chavali
2023-11-02Updated instruction-test example for removal of jump.registerAryadev Chavali
2023-11-01Added MALLOC_STACK and SUB to instruction-test exampleAryadev Chavali
2023-11-01Updated instruction-test example file for new memory management instructionsAryadev Chavali
2023-11-01Deleted fib.c as fib.asm replaces itAryadev Chavali
2023-11-01Implemented a factorial program in the assemblyAryadev Chavali
Very cool, easy, and reads well
2023-11-01Removed the index printing in fib.asmAryadev Chavali
2023-11-01examples/fib.asm now terminates on a very large boundAryadev Chavali
This is using the comparators and a jump-if
2023-11-01Made an example translation of fib.c to the custom assembly (fib.asm)Aryadev Chavali
2023-10-31Moved inst module to libAryadev Chavali
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-31Changed asm/parser instruction push-reg->push.regAryadev Chavali
2023-10-29Added some examples to instruction-test for positive/negative literalsAryadev Chavali
Use the push.* instructions to see this.
2023-10-29Introduced an example source file for all instructionsAryadev Chavali
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-29Auto-fill copyright notice in examples/fib.cAryadev Chavali
2023-10-23Make root directory an include path, set #include's properlyAryadev Chavali
Easier to write includes now just using < with the module name, in comparison to using relative paths.
2023-10-23Reintroduced example fib.c via examples/ folderAryadev Chavali