assemblysyntax-errormotorolamicroprocessors6800

Syntax Error at line 1: Label can not be 'BRA'


Getting the error below:

Syntax Error at line 1: Label can not be 'BRA'

when trying to compile:

BRA ND
ND LDAA #0

using sdk.


Solution

  • Assembly languages tend to view symbols at the start of the line as labels. Instructions needs to be indented:

    ; Note indentation here
    ;vv
       BRA ND
    ND LDAA #0