16F676
Member level 2
Hi friends,
I have a doubt on macros. I created a new asm file(delay.asm) as macro and included it's name in the main file(#include delay.asm). then I cut and pasted some portion of my asm(delay routine) to the new macro file. now I assambled the file with mplab and it returned with an error- overwriting address bla bla..
I had to allocate some blank address (ORG 0X0B00) in the bigining of the macro file to overcome the issue and it's successfully assembled. But I found some macro files from net has no addres alocation and it can be assambled with out error. How come my macro need to allocate space? is there any sloution to remove the address alocation (ORG 0Xxxxx) from the bigining of a macro file?
Thanks in advance.
NB: I am using assembly language.
I have a doubt on macros. I created a new asm file(delay.asm) as macro and included it's name in the main file(#include delay.asm). then I cut and pasted some portion of my asm(delay routine) to the new macro file. now I assambled the file with mplab and it returned with an error- overwriting address bla bla..
I had to allocate some blank address (ORG 0X0B00) in the bigining of the macro file to overcome the issue and it's successfully assembled. But I found some macro files from net has no addres alocation and it can be assambled with out error. How come my macro need to allocate space? is there any sloution to remove the address alocation (ORG 0Xxxxx) from the bigining of a macro file?
Thanks in advance.
NB: I am using assembly language.