Tools in use:
TI_CGT_C6000_7.4.1
xdctools_3_23_00_32
bios_6_33_01_25
I'm looking for how to install an interrupt handler on the NMI on a c64 (not c64p). This is HWI1, which does not run thru the normal HMI dispatcher (from what I can tell). What I've tried so far:
Looking thru XDC I found the nonDispatchedInterrupts array which seems to be there to handle this case, so I tried this in my cfg (modeled after what I saw being done for the reset vector):
var name = "ti_sysbios_family_c64_Hwi1";
Hwi.nonDispatchedInterrupts[name] = new Hwi.NonDispatchedInterrupt();
Hwi.nonDispatchedInterrupts[name].fxn = '&myNmi';
Hwi.nonDispatchedInterrupts[name].eventId = -1;
Hwi.nonDispatchedInterrupts[name].enableInt = true;
Hwi.nonDispatchedInterrupts[name].intNum = 0;
xdctools says its never heard of this:
XDC runtime error: ti.sysbios.hal.Hwi: no property named 'nonDispatchedInterrupts'
Next I found plugMeta in the docs which seems to allow me to directly plug the vector table...
Hwi.plugMeta(1, &myNmi);
...but xdc doesn't like that, either:
XDC runtime error: ti.sysbios.hal.Hwi: no property named 'plugMeta'
I'm rapidly running out of ideas...help!
Thanks in advance...
--Adam