Validity: Rule, Task
This variable identifies the mask of enabled user tasks.
Syntax |
I32 user_task_mask |
---|---|
Attributes |
Bit-accessible. Read only |
The meaning of the bits is as follows:
Bit |
Hexadecimal value |
Description |
---|---|---|
BIT 0 |
0x1 |
TASK 1 Enabled |
BIT 1 |
0x2 |
TASK 2 Enabled |
BIT 2 |
0x4 |
TASK 3 Enabled |
BIT 3 |
0x8 |
TASK 4 Enabled |
BIT 4 |
0x10 |
TASK 5 Enabled |
BIT 5 |
0x20 |
TASK 6 Enabled |
BIT 6 |
0x40 |
TASK 7 Enabled |
BIT 7 |
0x80 |
TASK 8 Enabled |
Example
; the enabled user task mask is stored in r(110) r(101) = user_task_mask ; if bit 6 of the user_task_mask variable is equal to 1 ; the string "Task 7 enabled" will be stored in sr(1) ; otherwise the string "Task 7 Disabled" will be stored if(user_task_mask.6) sr(1) = "Task 7 Enabled" else sr(1) = "Task 7 Disabled" endif |