Martin Bishop <[email protected]> wrote:

> Orthogonally, rather than use macros why not use RegEx and your
> favorite programming language to fix up the source code's endian
> issues.

Well, I try to use Perl as often as possible for exactly that reason,
but the advantage of a macro assembler is that I get the symbol lookups
for free, to save me from brain farts.

So far, I just have these two:

dwl macro address
        db      low(address),high(address)
endm

which lets me construct the jump tables.

I can't fix up the source to make it big endian because I need to
annotate and rebuild the ROM exactly as it was delivered; I just need a
readable version.

Regards,
Paul

Reply via email to