//Register a unary arithmetic opcode which allows the S bit. internal void RegisterDataOpLogical(DataOpLogicalUnary opHandler, uint base_opcode, string basename) { DataOpBuilderLogical b = new DataOpBuilderLogical(); b.opcode = base_opcode; b.name = basename; b.IsUnaryOperation = true; b.UnaryOp = opHandler; b.owner = this; b.StartBuild(); }
//Register an arithmetic opcode which allows the S bit. internal void RegisterDataOpLogical(DataOpLogicalBinary opHandler, uint base_opcode, string basename) { #if DEBUG if ((base_opcode & s_mask) != 0) { throw new Exception("base_opcode and s_mask not disjoint registering " + basename); } #endif DataOpBuilderLogical b = new DataOpBuilderLogical(); b.opcode = base_opcode; b.name = basename; b.IsUnaryOperation = false; b.BinaryOp = opHandler; b.owner = this; b.StartBuild(); }