Shift (Ternary): Difference between revisions
From TernaryWiki
Jump to navigationJump to search
Created page with "<big><b>Register Shift</b></big> Register shift, shifts all trits to the left or right. What is shifted in can be selected; negative, zero, positive. == Uses == A left shift will cube the result. A right shift will cube-root the result. === Logical === Logical shifts exclude the ALU barrow/carry flag trit. === Arithmetic === Arithmetic shifts include the ALU barrow/carry flag trit." |
No edit summary |
||
Line 3: | Line 3: | ||
Register shift, shifts all trits to the left or right. | Register shift, shifts all trits to the left or right. | ||
What is shifted in can be selected; negative, zero, positive. | What is shifted in can be selected; negative, zero, positive. | ||
=== Logical === | === Logical === | ||
Line 12: | Line 9: | ||
=== Arithmetic === | === Arithmetic === | ||
Arithmetic shifts include the ALU barrow/carry flag trit. | Arithmetic shifts include the ALU barrow/carry flag trit. | ||
== Uses == | |||
A left shift will cube the result. A right shift will cube-root the result. |
Revision as of 10:50, 12 May 2025
Register Shift
Register shift, shifts all trits to the left or right. What is shifted in can be selected; negative, zero, positive.
Logical
Logical shifts exclude the ALU barrow/carry flag trit.
Arithmetic
Arithmetic shifts include the ALU barrow/carry flag trit.
Uses
A left shift will cube the result. A right shift will cube-root the result.