Skip to content

From pseudo-assembler to byte code translator.

Notifications You must be signed in to change notification settings

vsokh/Assembler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Assembler

The goal of this project is to be a translator from pseudo-assembler to pseudo-byte code.

Install & Build & Run

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

Preview

For the sake of beauty I use bat & hexyl commands. preview of an input and output

Coding style

Code written in C follows Norminette(42 coding style specification for C-based projects) rules.

Author

vsokolog