Hello I doubt this will work but I really don't know exactly how the opcodes work. Would anyone be able to tell me if this would work, its to be able to start a task while passing an integer to it.
Code:
intrinsic void StartTask(void TaskID, const short nTaskVariable) asm(opcdStartTask, taskNameConstant(TaskID), variable(nTaskVariable));
Joined: Wed Mar 05, 2008 8:14 am Posts: 2864 Location: Rotterdam, The Netherlands
Re: Passing Parameters to Tasks
No, this will not work. If you want to pass info to a task, use global variables.
- Xander
_________________ | Some people, when confronted with a problem, think, "I know, I'll use threads," | and then two they hav erpoblesms. (@nedbat) | My Blog: I'd Rather Be Building Robots | ROBOTC 3rd Party Driver Suite: [Project Page]
Users browsing this forum: No registered users and 2 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum