[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need LISA help



Jeff Blakeney <jeff.blakeney@a2central.com.remove-l3v-this> wrote:
> If the book you are using has source code for an assembler other than
> LISA, keep in mind that there are assembler specific mnemonics that may
> not work.  Things like ASC, DS, DB, DW, EQU, ORG and such are assembler
> specific as is the way labels are defined.

I wrote parsers for LISA v2, v3, and v4/v5 for CiderPress.  v3 used a table
of 3-character entries that condenses to roughly this:

    add adc and cmp eor lda ora sbc
    sta sub xor asl dec inc lsr rol
    ror .if whl bra bcc bcs beq bfl
    bge blt bmi bne bpl btr bvc bvs
    jsr obj org phs .md fzr inp lcl
    rls bit cpx cpy jmp ldx ldy stx
    sty trb tsb stz =   con epz equ
    set .da adr byt csp dby hby anx
    sbt ttl chn blk dci inv rvs msg
    str zro dfs hex usr sav
    .el .fi .me .we dph if1 if2 end
    exp gen lst nls nog nox pag pau
    nlc cnd     asl lsr rol ror dec
    inc brk clc cld cli clv dex dey
    inx iny nop pha php pla plp rti
    rts sec sed sei tax tay tsx txa
    txs tya phx phy plx ply

The file is tokenized to keep the size down.  So if it's not in the table
somewhere, it's probably not legal.

-- 
Send mail to fadden@fadden.com (Andy McFadden) - http://www.fadden.com/
Fight Internet Spam - http://spam.abuse.net/spam/ & http://spamcop.net/