Assembly Assemble Syntax CBM Program Studio

I am trying to learn CBM Program Studio. But I can’t get macros for me. The codes were fine with the macro. But when I add the macro, it gives “No end-of-line definition” on line 7.

Any idea?

        *=$c000 ; sys 49152

        ; set screen colors to black 
        lda #$00
        sta $d020
        sta $d021

defm    waitmacro ;akumulatörü hacılıyor   
        TYA
mloop   DEY
        BNE mloop
        TAY     
        endm waitmacro

        ;color bars
        LDX #$FF
loop    LDY #$07
        STY $d020

        waitmacro

        INY
        STY $d020

        waitmacro

        DEX
        BNE loop
        RTS
+5
source share
1 answer

It should work fine unless you provide a name for endm. I.e:.

defm waitmacro ;akumulatörü hacılıyor
        TYA
mloop   DEY
        BNE mloop
        TAY     
        endm

I am not sure why this is so, or why the documentation says otherwise.

+5
source

All Articles