1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-12 07:07:19 +00:00
cc65/test/val/jmp-callax.c
2019-04-30 18:21:13 +02:00

22 lines
275 B
C

static unsigned char val;
static void foo(void) {
val = 5;
}
static void wrap(void) {
asm("lda #<%v", foo);
asm("ldx #>%v", foo);
asm("jmp callax");
}
int main(void) {
val = 0;
wrap();
return val == 5 ? 0 : 1;
}