I want to put a function in an specific address of memory like PIC C Compiler (#org
).
I'm using MPLAB X, HI-TECH compiler and PIC18F4550.
In PIC C compiler:
#org 0x1000, 0x2000
void MyFunction()
{
}
//In other part of code I'll use: asm("goto 0x1000");
How to do this in MPLAB X with the HI-TECH compiler?
MyFunction
from assembly (maybe as_MyFunction
depending on compiler). \$\endgroup\$