accessing local static variables from asm
Posted: Sun Dec 16, 2018 10:42 am
How do I refer a local static variable from ASM? E.g. in the following code, how to access "z" ?
Code: Select all
void foo() {
static unsigned char z;
__asm
ld a, (_z) ; **** doesn't work
__endasm;
}