I may be misusing TASKS or there's a bug in my code, but when restarting a task that has deactivated itself, the data stack seems to be decremented by 8 and the return stack by 4. To patch this, I initialise the re-run tasks stacks with s0 sp! r0 rp! and all runs properly. See attached test file.
multitask test.zip
I may be misusing TASKS or there's a bug in my code, but when restarting a task that has deactivated itself, the data stack seems to be decremented by 8 and the return stack by 4. To patch this, I initialise the re-run tasks stacks with s0 sp! r0 rp! and all runs properly. See attached test file. multitask test.zip