NSR
Circular Shift Right with 0 priority.
Syntax
nsr [count]
Parameters
count
- Decimal number from 2 to 100, tells how many times next command or block will be retried.
Example 0x00
sleeps 500 ; Set sleeps = 500 ms
CYCLE: ; Define Label
111111111101
nsr 5 ; Do NSR for 5 times
goto CYCLE ; Infinite cycle
Example SSL SSR NSL NSR
sleeps 500 ; Set sleeps = 500 ms
000001100000
CYCLE: ; Define Label
try 2 ; Do block for 2 times
{
ssl 2 ; Circular Shift Left with 1 priority.
ssr 2 ; Circular Shift Right with 1 priority.
}
try 2 ; Do block for 2 times
{
nsr 2 ; Circular Shift Right with 0 priority.
nsl 2 ; Circular Shift Left with 0 priority.
}
goto CYCLE ; Infinite cycle
Example 0x02 "Snake"
sleeps 500 ; Set sleeps = 500 ms
0000000001110
CYCLE: ; Define Label
ssr 3 ; Circular Shift Left with 1 priority.
nsr 3 ; Circular Shift Left with 0 priority.
goto CYCLE ; Infinite cycle