Instructions

From T729 Balanced Ternary Computer
Revision as of 18:45, 22 January 2025 by MrDyne (talk | contribs)
Jump to navigationJump to search

(Very rough list.)

ALU

  • Addition
  • Subtraction
  • Multiply
  • Multiply-Accumulate
  • Negate
  • Sum
  • Any
  • Consensus
  • Eor
  • Compare
  • Maximum
  • Minimum
  • Increment
  • Decrement
  • The Negated Form Of Everything Above

Register Shift / Rotate

  • Arithmetic Shift In/Out
  • Logical Shifts In/Out
  • Arithmetic Rotate Left/Right/Up/Down
  • Logical Rotate Left/Right/Up/Down
    • Arithmetic operations use the carry/barrow flag trit.
    • Logical operations do not use the carry/barrow flag trit.

Branches / Jumps

  • Branch If Negative/Zero/Positive
  • Branch If Underflow/Level/Overflow
  • Branch If Borrow/Whole/Carry
  • Branch If Odd/Zero/Even
  • Increment & Jump If Not Zero
  • Decrement & Jump If Not Zero
  • Nth Trit Checks