The goal of this project is to be a translator from pseudo-assembler to pseudo-byte code.
git clone https://github.com/vsokh/assembler.git && \
cd assembler && \
git submodule update --init --recursive && \
make
The program takes filename.s(code specification) file as an input and produces filename.cor file as an output in the root directory of the project.
./asm vm_champs/champs/examples/zork.s
You can execute the program with -a
flag in order to observe program size, opcodes of instructions and parameters.
./asm -a vm_champs/champs/examples/zork.s
For the sake of beauty I use bat & hexyl commands.
Code written in C follows Norminette(42 coding style specification for C-based projects) rules.
vsokolog