> Subject: Re: Writing an assembler in Python > 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. > -- > http://mail.python.org/mailman/listinfo/python-list >
Not a bad idea, has anyone tried this for x86 machine code? -EdK Ed Keith e_...@yahoo.com Blog: edkeith.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list