aboutsummaryrefslogtreecommitdiff
path: root/assembler.c
AgeCommit message (Collapse)Author
2024-12-24Remove asm_write_init and asm_write_exitHEADmasterAryadev Chavali
Just inline into asm_translate_nodes
2024-12-24Implement SIZE_FMT and vec_append_fmtAryadev Chavali
SIZE_FMT gets the size of a cstr with the given sprintf formatted string and arguments using `snprintf`. vec_append_fmt formats a cstr with the given sprintf arguments then appends it to the given vector. This simplifies a little bit of the wordy implementation of the assembler.
2024-12-24Move system calling code to the endAryadev Chavali
2024-12-19Refactor assembler to use vec_t instead of bufferAryadev Chavali
Clearer, precise and no double pointers.
2024-12-03asm_write_{init, exit} when asm_translate_nodesAryadev Chavali
2024-12-03Fix errors due to no loopsAryadev Chavali
2024-12-03Wrote an assembler (transpiles brainfuck into assembly code)Aryadev Chavali
Provides: + Transpilation from brainfuck code into intel style assembly + functions to assemble and link code