electronicsman
Full Member level 5
In general for micro controllers let us say my .text section starts at 0x100 that is main. Now i want to define a pointer to this starting location 0x100 and read this data in the main itself. For example
Is the above thing possible? This is for PIC controllers.
Code:
int main(void)
{
int *p; /* I want to point this to the start of main or 0x100 location */
int data;
data = *p; /* i want to capture the instructions at 0x100 into data variable*/
}
Is the above thing possible? This is for PIC controllers.