On Wed, Sep 12, 2001 at 05:18:38PM -0400, Gregor N. Purdy wrote:
> Attached is a diff for assemble.pl that does a somewhat messy job of
> solving the problem posed in the TODO file. It does it by parsing
> the root of each opcode when parsing the opcode table and creating a
> hash with the opcode root and the formal argument types (qualifiers)
> so that, e.g. $opqual{'add'}{'i:ic'} == 'add_i_ic'.
> 
> This appears to work. I've tested the output of assembling euclid.pasm
> and got the same results as before. YMMV.
> 
> I left some debugging printfs in the file but commented out. A cooler
> approach would do some sort of partial matching if you specified some
> qualifiers, such as "add_i I4, I4, 3" mapping to "add_i_ic I4, I4, 3".

Thanks; I'm not going to apply this yet, because someone else might come
up with a less messy way of doing it. :)

Simon

Reply via email to