An assembler for a custom 8-bit instruction set architecture. Compiles assembly-style code into machine code.
Built for the custom computer from Digital Logic Sim by Sebastian Lague.
More info at mvparker.dev
gcc lsasm.c -o lsasm./lsasm [-f FORMAT] <input_file> <output_file>-f <FORMAT>- Output format:hex,uint,int,binary(default:hex)
./lsasm scripts/fib.txt machine_code.out
./lsasm -f binary scripts/fib.txt machine_code.out
./lsasm -f uint input.txt output.txtALU Operations: AND, OR, XOR, NOT, ADD, SUB, LSL, LSR
Memory: READ, WRITE (constant/register addressing)
Control Flow: B, BEQ, BNE, BLT, BLE, BGT, BGE, BCS, BCC, BMI, BPL, BVS, BVC, BHI, BLS
Other: MOV, CMP, EXIT