How to write an assember like FASM or something else? Is there any tutorial or text book described it?

Thank in advance for your comments!
Posted on 2006-07-11 23:44:57 by shucho
Posted on 2006-07-12 01:38:27 by Axial
You need to know how to read assembly, and convert each menmonic into the equivalant instructions. Which means you need a powerful text parser, and you need to know that chip's instructions in machine code. You also need the preprocessor stuff like includes, and macros, and all those things that make coding easier, unless you want a true pure environment...
Posted on 2006-07-12 16:08:58 by Bobbias
If you want to know how FASM is written, why not read the source codes?
Posted on 2006-07-12 16:16:03 by Tommy
To me, you should read this book
Compilers,Principles,Techniques and Tools
That's a outstanding resource for compiler design. I strongly advice that, perhaps you don't need it just writting a simple assembler but if you read it, you will write "a smart" assembler :)
Posted on 2006-07-13 17:39:23 by Dite
Take a look at the "Assembler Developer's Kit"


I already used the code there to write a simple interpreted language for a text-game engine.

Posted on 2006-07-16 12:54:45 by Kain