Skip to content
This repository was archived by the owner on Sep 16, 2025. It is now read-only.
/ QCPU-Assembler Public archive

A simple Node-based assembler for QCPU

License

Notifications You must be signed in to change notification settings

QSmally/QCPU-Assembler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QCPU Assembler

A very simple assembler made in JavaScript for the QCPU processor. I will probably rewrite it in Swift sometime in the future.

Use it

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.

Tag support

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.

Structure

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.

About

A simple Node-based assembler for QCPU

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •