| | Re: librcx & interrupt handler
|
| (...) You can do this in C. ((void(*)(void))0x36ab)(); (void(*)(void)) is a cast to make 0x36ab a pointer to a void function with no parameters. You then take that and use it as a function. You still have to be careful about register usage and use (...) (22 years ago, 29-Aug-02, to lugnet.robotics.rcx)
| | | | Re: librcx & interrupt handler
|
| Hi (...) i thought of that... but it seemed too easy... (...) here's what I wrote, and so far it seems to work proprly (tell me if I'm wrong): #include <timer.h> #include <null.h> #include <irq.h> static char _timer_data[64]; #define save_reg() (...) (22 years ago, 30-Aug-02, to lugnet.robotics.rcx)
| |