Search This Blog

Loading...

Tuesday, October 23, 2007

multipal lable error with keil

if you have label inside macro. and you are calling that macro more then once then keil will raise multipal label problem.

you have to declare label inside the macro as a local.

Example :

TEST_SPIBUSY macro
local spi01
push acc
spi01:
mov a,SPI0CFG
anl a,#80
jb acc.7, spi01
clr SPIF
pop acc
endm

No comments: