nurpax / c64jasm

C64 6502 assembler in TypeScript
51 stars 14 forks source link

misleading error message with macros #46

Closed nurpax closed 5 years ago

nurpax commented 5 years ago
!macro xyz(col) {
    lda #col
    sta xyz; $d020
}

(xyz is undeclared)

this gives:

Must have a label or a variable identifier here, got macro name

nurpax commented 5 years ago

actually it's because xyz is in scope as a macro. so the error is correct.