ldintb from C
Up to R8C/Tiny
Hi there,
I am working on a bootloader for the AA device, and I would like to switch vector tables in my main app.
In sect30.inc, I have the following sequence:
...
.section itable_NE,ROMDATA
.glb APP_VECTOR
APP_VECTOR .equ 04020H
.org APP_VECTOR; this area stores the second interrupt table
.lword dummy_int ; vector 0
.lword dummy_int ; vector 1
...
From my main app, I am changing vector tables using the following command:
asm(" ldintb #4020h");
Personally, I would prefer to switch tables using the const APP_VECTOR, however, whenever I try to implement something like:
asm(" ldintb #$$", APP_VECTOR);
the compiler will complain either of the fact that I haven't marked APP_VECTOR as extern, or that it isn't a constant (along with another 250 errors from that statement).
What is the proper syntax for setting up the ldintb instruction from C?
Thanks.

