I can’t identify the syntax error in a delayprogram

i’m constructing a program for school that will turn one LED on after another, to make itfloat, but with a delay. When i assemble it it says that i have a syntaxerror but i can’t locate it.

LED:        EQU $FB

    ORG     $20
RUNDIODEDELAY:  LDSP    $10
    CLRA    
    LDA     #1

RUNDIODEDELAY1: LDA     LED
    ROLA    
    JSR DELAY
    JMP RUNDIODEDELAY1

DELAY:      PSHA
    PSHC
    LDA #255

DELAY1:     LDA A,$FE
    CMPA    #$00
    BNE DELAY2
    JMP     DELAY1

DELAY2:     PULC
    PULA
    RTS

The line 17, where it says DELAY1 is where it says there is a syntax error.
Thx in advance


Source: syntax

Leave a Reply