79384391

Date: 2025-01-24 12:52:28
Score: 1
Natty:
Report link

so yk, In the XC8 compiler, you can't directly use the @ syntax like you can do in CC5X to assign a variable to a specific memory address.

here's an example,

#include <xc.h>

char my_array[10]; unsigned int *cont_up;

void main() { cont_up = (unsigned int *)&my_array[5];

*cont_up = 0xABCD; 


while (1);

}

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Khai