Opcode OpcodeIndxS(string s) { // This gets the parameter (stored as b) from the byte[] byte b = IL[pos]; pos++; var ind = new Index("V_" + b); var NewOp = new Opcode(s,b); MakeLabel(NewOp); return NewOp; }
Opcode OpcodeIndx(string s) { // This gets the parameter (stored as b) from the byte[] byte[] b = new byte[2]; for (int k = 0; k < 2; k++) { b[k] = IL[pos]; pos++; } short i = BitConverter.ToInt16(b,0); var ind = new Index("V_" + i); var NewOp = new Opcode(s,i); MakeLabel(NewOp); return NewOp; }