Posted 02 May 2012 - 05:24 AM
I've got some slight modifications to make to read() that I'd like to apply to all calls to it on a per-computer basis. I'm trying to do this such that it would be possible to use on SMP when one doesn't have access to the ROM (which is where it's implemented right now). The best way I could think of was a straight function-replacement in startup, but I have the nasty feeling that that change is going out of scope as soon as startup is finished executing, since I'm seeing the behavior of the usual read() there instead of the modified behavior. Everything works fine if the modified read() is implemented in bios.lua instead. Any pointers on what the issue is? Is it really just a scope issue?
[These changes implement event-driven multitasking (for rednet daemons), and are already tested and proven to work. I'm just trying to make the system portable at this point.]
[These changes implement event-driven multitasking (for rednet daemons), and are already tested and proven to work. I'm just trying to make the system portable at this point.]