]> git.sur5r.net Git - cc65/blob - test/val/jmp-callax.c
again, some TABs slipped into the code...
[cc65] / test / val / jmp-callax.c
1 static unsigned char val;
2
3 static void foo(void) {
4         val = 5;
5 }
6
7 static void wrap(void) {
8
9         asm("lda #<%v", foo);
10         asm("ldx #>%v", foo);
11         asm("jmp callax");
12
13 }
14
15 int main(void) {
16
17         val = 0;
18         wrap();
19
20         return val == 5 ? 0 : 1;
21 }