@Test public void testEmitPushType2Value(){ StringBuilder pCode = new StringBuilder(); PcodeTextEmitter.emitPushCat2Value(pCode, "x"); assertTrue(pCode.toString().equals("SP = SP - 8;\n*:8 SP = x;\n")); }
public static void emitPushCat2Value(StringBuilder pCode, String valueName){ pCode.append("SP = SP - 8;\n*:8 SP = "); pCode.append(valueName); pCode.append(";\n"); }
PcodeTextEmitter { public static void emitPushCat2Value(StringBuilder pCode, String valueName){ pCode.append("SP = SP - 8;\n*:8 SP = "); pCode.append(valueName); pCode.append(";\n"); } }
PcodeTextEmitter { public static void emitPushCat2Value(StringBuilder pCode, String valueName){ pCode.append("SP = SP - 8;\n*:8 SP = "); pCode.append(valueName); pCode.append(";\n"); } private  PcodeTextEmitter(); }
PcodeTextEmitter { public static void emitPushCat2Value(StringBuilder pCode, String valueName){ pCode.append("SP = SP - 8;\n*:8 SP = "); pCode.append(valueName); pCode.append(";\n"); } private  PcodeTextEmitter(); static void emitPushCat1Value(StringBuilder pCode, String valueName); static void emitPushCat2Value(StringBuilder pCode, String valueName); static void emitPopCat2Value(StringBuilder pCode, String destName); static void emitPopCat1Value(StringBuilder pCode, String destName); static void emitAssignVarnodeFromPcodeOpCall(StringBuilder pCode, String varnodeName, int size, String pcodeop, String... args); static void emitVoidPcodeOpCall(StringBuilder pCode, String pcodeop, String... args); static void emitAssignConstantToRegister(StringBuilder pCode, String register, int constant); static void emitAssignRegisterFromPcodeOpCall(StringBuilder pCode, String register, String pcodeop, String... args); static void emitLabelDefinition(StringBuilder pCode, String caseName); static void emitWriteToMemory(StringBuilder pCode, String space, int size, String offset, String value); static void emitIndirectCall(StringBuilder pCode, String target); static void emitAddToStackPointer(StringBuilder pCode, int amount); static void emitSignExtension(StringBuilder pCode, String dest, int size, String src); static void emitZeroExtension(StringBuilder pCode, String dest, int size, String src); static void emitTruncate(StringBuilder pCode, String dest, int size, String src); }
PcodeTextEmitter { public static void emitPushCat2Value(StringBuilder pCode, String valueName){ pCode.append("SP = SP - 8;\n*:8 SP = "); pCode.append(valueName); pCode.append(";\n"); } private  PcodeTextEmitter(); static void emitPushCat1Value(StringBuilder pCode, String valueName); static void emitPushCat2Value(StringBuilder pCode, String valueName); static void emitPopCat2Value(StringBuilder pCode, String destName); static void emitPopCat1Value(StringBuilder pCode, String destName); static void emitAssignVarnodeFromPcodeOpCall(StringBuilder pCode, String varnodeName, int size, String pcodeop, String... args); static void emitVoidPcodeOpCall(StringBuilder pCode, String pcodeop, String... args); static void emitAssignConstantToRegister(StringBuilder pCode, String register, int constant); static void emitAssignRegisterFromPcodeOpCall(StringBuilder pCode, String register, String pcodeop, String... args); static void emitLabelDefinition(StringBuilder pCode, String caseName); static void emitWriteToMemory(StringBuilder pCode, String space, int size, String offset, String value); static void emitIndirectCall(StringBuilder pCode, String target); static void emitAddToStackPointer(StringBuilder pCode, int amount); static void emitSignExtension(StringBuilder pCode, String dest, int size, String src); static void emitZeroExtension(StringBuilder pCode, String dest, int size, String src); static void emitTruncate(StringBuilder pCode, String dest, int size, String src);  }