views:

214

answers:

3

I'd like to make a simple x86 assembler. I'm wondering if there's any tutorials for making your own assembler. Or if there's a simple assembler that I could study.

Also, I wonder what tools are used in looking at and handling the binary/hex of programs.

A: 

As far as example code goes...

I don't know of any "simple" assemblers, though.

pioto
+1  A: 

I wrote one a long time ago. It is as simple as getting the x86 assembler ref guide from Intel, and writing the bytes to a .com file (for windows). I wish i could find my old forum post I made on it. It was written in D++. Just goes to show you can do it in any language. Just tokenize your string and translate it.

Jeremy