summaryrefslogtreecommitdiff
path: root/cpu/instructions/execution_control/tswitch.txt
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/instructions/execution_control/tswitch.txt')
-rw-r--r--cpu/instructions/execution_control/tswitch.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/cpu/instructions/execution_control/tswitch.txt b/cpu/instructions/execution_control/tswitch.txt
new file mode 100644
index 0000000..82aeefd
--- /dev/null
+++ b/cpu/instructions/execution_control/tswitch.txt
@@ -0,0 +1,16 @@
+Number of parameters: 2
+
+Usage:
+ tswitch <task index> <id>
+
+Effect:
+ See ../../task_switching/execution.txt
+
+Exceptions:
+ `Invalid operation` if not the original task
+
+ `Illegal instruction` if used with any other task-related instruction in the same queue
+ Not triggered if conditional and only one was selected to be run
+
+Flags:
+ Zero if id does not match the task at the index or the task at index is not marked as valid