Writing an assembler in Python
Albert van der Horst
albert at spenarnc.xs4all.nl
Tue Mar 2 19:48:59 CET 2010
In article <Xns9D28186AF890Cfdnbgui7uhu5h8hrnuio at 127.0.0.1>,
Giorgos Tzampanakis <gt67 at hw.ac.uk> wrote:
>I'm implementing a CPU that will run on an FPGA. I want to have a
>(dead) simple assembler that will generate the machine code for
>me. I want to use Python for that. Are there any libraries that
>can help me with the parsing of the assembly code?
I have a pentium assembler in perl on my website below.
You could borrow some idea's, if you can read perl.
The main purpose is to have a very simple and straightforward
assembler at the expense of ease of use.
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert at spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst
More information about the Python-list