Writing an assembler in Python
Lawrence D'Oliveiro
ldo at geek-central.gen.new_zealand
Mon Feb 22 22:08:19 EST 2010
In message <Xns9D28186AF890Cfdnbgui7uhu5h8hrnuio at 127.0.0.1>, Giorgos
Tzampanakis 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.
Let me suggest an alternative approach: use Python itself as the assembler.
Call routines in your library to output the code. That way you have a
language more powerful than any assembler.
See <http://github.com/ldo/crosscode8> for an example.
More information about the Python-list
mailing list