This is a simple x86_64 assembler written in Python.
-
Main aim is to read the Intel Manual and understand the wide range of instructions present.
-
Then write code to asssemble instructions.
At the moment, the goal is to convert assembly instructions into machine code according to the Intel developer manual.
Inspiration:
- rasm2 is awesome!
- This talk - This dude XlogicX has written a tool called irasm which shows that assembly-machine code mapping is not 1:1.
- And I have never written a tool like this before. So, thought of writing this!
Realized that writing an assembler takes time.
So, I wrote nasmshell - A simple python3 wrapper for nasm and ndisasm tools. Do check it out!