Zitat Zitat von Siro Beitrag anzeigen
Code:
...
unsigned char LedArray[LED_COUNT];

void LedShiftOut(void)
{
  asm("BANKSEL LedArray");
...
MPLAB_XC8_C_Compiler_User_Guide.pdf:
Most C symbols map to an corresponding assembly equivalent.
...
The name of a C function maps to an assembly label that will have the same name, but
with an underscore prepended. So the function main() will define an assembly label
_main.
nach meinem Wissen gilt das für Funktionen als auch für Variablen, also folgendes müsste gehen:
Code:
asm("BANKSEL _LedArray");