Raku assembler for z8b
Improved implementaion over the previous Perl one here.
Example source code:
start:
push 5
pop A
push 2
pop B
add A B ; add B into A
push 4
pop C
cmp C A
jmpz #end2
; this is a comment
end1:
push 33
pop B
end2:
push 1
pop B
$ ./rz8basm.raku
Usage:
./rz8basm.raku [-v|--verbose] <file>
<file> b8 file
-v|--verbose verbose mode
The
a.outgenerated file is now ready to be ran byz8b.