Re: 8051 assembler in Common Lisp



On 2005-07-27, Jeff M. <massung@xxxxxxxxx> wrote:
> I've done something extremely similar for the ARM7TDMI. I'd have to dig
> it up, but it might be of some use to you. Simply put, the assmebler
> package contained a hash table of all the instruction mnemonics. A
> macro 'define-instruction' created a mnemonic, handled the operands,
> and returned one of two values: the opcode or the number of bytes the
> opcode required. Which value was returned was based on whether or not
> *pass* was set to 0 or 1.

It's interesting to see a bunch of assemblers in CL. I wrote one
recently for the m68k, with an accompanying linker for producing Atari
ST binaries. I was going to retarget it for the ARM sometime, but your
design sounds more interesting (I was going for an assembler with more
convenientional syntax, that can break out into lisp for macros).

I'm hoping to release mine soon, once I get the time to clean up a few
things (better errors and warnings). I'd definitely like to see the
others, as well.

Cheers.

--
Julian Squires
.