The Janus Assembler (jas) generates machine code for the
vesta virtual machine.
jas achieves code generation in three steps (as of now):
- Lexical Analysis - syntax checks, load information about instructions and labels.
- Semantic Analysis - instruction/operand type checking, size agreement, etc.
- Name Resolution and Linking* - resolve undefined labels, etc.
If you want to check out jas for yourself, you'll need the following installed:
makegcc
Once you're sure that you do, clone the repo:
$ git clone https://github.com/janus-cpu/janus-jas.git
and make the jas executable. Of course, you'd also need to have
vesta as well.
make- compile the assemblermake clean- removes any generated filesmake new- runsmake cleanthenmakeagain
* Note: not implemented yet.