Page 1 of 1

macro with acme does not work.

Posted: Sun Nov 17, 2019 5:17 am
by funkheld
Hi good afternoon.

macro with acme does not work.

It should come out "7", but it comes "4"

why please.

thanks.
greeting

Code: Select all

!to "macro1.p", cbm

*=8192

!macro plus Q,W {
	!set .W = Q + W
}

start

+plus 3,4

lda #4
sta 37888

lda #W
sta 4096

rts

Re: macro with acme does not work.

Posted: Mon Nov 18, 2019 1:30 am
by Schlowski
It's a dot too much or a dot missing.

You set .W in your macro but use W in your program.