A very simple assembler made in JavaScript for the QCPU processor. I will probably rewrite it in Swift sometime in the future.
Clone the repository, run npm install
to install libraries, and input your ProgramName.s
file in Program/
. Run node .
in the main folder to assemble all the Assembly files.
There are already some ExamplePrograms/
you could try out - Copy the ProgramName.schem
file and paste it into your schematics folder or upload it to a server.
Since 19/03/21, tags are now available to dynamically address jumps (and also memory, if you want that for some odd reason). Programs in the examples directory are not up to date with tags, but still do work with static addresses.
Each program in Program/
, when assembled, has three files;
- ProgramName.s - Your inputted program, raw Assembly
- ProgramName.schem - The schematic this assembler created for you to paste into your world
- ProgramName.txt - The converted binary which is used in the schematic
Check out Utils/Opcodes.json
for a list of operation codes, or see the instruction set.