Re: question about how to add a machine_func to eu ver. 3.11
- Posted by BRyan Sep 11, 2012
- 1214 views
mattlewis said...
Yes, this is somewhat tricky. Basically, you need to call it as a callback. I think that the easiest way to do this is probably to add another machine function that takes the address of your function as a callback. Then you can store that in a function pointer in be_machine.c, and call the callback when that machine func is invoked.
Matt
Matt: I can not use a callback because it will not work in DOS I would like to use this code in be_machine.c : case M_CALL_FOO: return call_func(foo_id, {x}); break; Can you please show me how I can do this in "C" or assembler in be_machine.c I need to accomplish this to be able to build the 3.11 binaries.