assemblysyntax-errormotorolamicroprocessors6800

Syntax Error: Undefined Label: 'LABELNAME'


I am getting:

Syntax Error: Undefined Label: 'LABELNAME'

when trying to compile the code with the this (assembler 6800IDE from https://www.hvrsoftware.com/6800emu.htm):

    BRA LABELNAME
LABELNAME: LDAA #0

Solution

  • Label definitions are not supposed to contain :. So replace:

    LABELNAME: LDAA #0
    

    with:

    LABELNAME LDAA #0
    

    to have:

        BRA LABELNAME
    LABELNAME LDAA #0