nurpax / c64jasm

C64 6502 assembler in TypeScript
51 stars 14 forks source link

show "expanded from" information in errors when a macro contains an error #43

Open nurpax opened 5 years ago

nurpax commented 5 years ago
    lda #0
    sta $d020

!macro foo(col) {
    lda #col
    sta $d020
}

+foo(3)

If say "lda #col" above has an error, the error is shown for that LDA line. But sometimes the error is due to the expansion call +macroname. So would be nice to show the full expansion path with some diagnostic notes.