Hi
I'm new to Atmel 8051 microcontroller Assembly language.
Is it possible to write a MACRO in assembly for 8051 microcontrollers then call it any where I need it?
like the one below of PIC microcontrollers.
the above code is for PIC micro.
I'm new to Atmel 8051 microcontroller Assembly language.
Is it possible to write a MACRO in assembly for 8051 microcontrollers then call it any where I need it?
like the one below of PIC microcontrollers.
Rich (BB code):
add32 MACRO dest , src
movf src+3 ,w
addwf dest+3,f
movf src+2 ,w
addwf dest+2,f
movf src+1 ,w
addwf dest+1,f
movf src+0 ,w
addwf dest+0,f