Rotate (Ternary)
From TernaryWiki
Jump to navigationJump to search
Register Rotate
Rotate left and right works very similar to Shift but what gets shifted out gets shifted in on the other end.
Rotate up and down increment and decrement all trits, no carry or barrow is involved. This operation is unique to ternary as a binary rotate up or down would just invert the result.
There are Logical and Arithmetic rotates where the ALU barrow/carry flag trit is excluded or included.
The trit rotated around also gets copied to the shift ALU flag.