Source returns the source for branch and ALU operations.
()
| 153 | |
| 154 | // Source returns the source for branch and ALU operations. |
| 155 | func (op OpCode) Source() Source { |
| 156 | if !op.Class().isJumpOrALU() || op.ALUOp() == Swap { |
| 157 | return InvalidSource |
| 158 | } |
| 159 | return Source(op & sourceMask) |
| 160 | } |
| 161 | |
| 162 | // ALUOp returns the ALUOp. |
| 163 | func (op OpCode) ALUOp() ALUOp { |