MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / arith

Method arith

tools/x86/src/x86/Arith.java:340–344  ·  view source on GitHub ↗
(FileOutputStream fos, FileOutputStream fos_init, FileOutputStream fos32, String name, String op, boolean cf, boolean result, boolean flags, boolean iform, boolean hasRE)

Source from the content-addressed store, hash-verified

338 }
339
340 public void arith(FileOutputStream fos, FileOutputStream fos_init, FileOutputStream fos32, String name, String op, boolean cf, boolean result, boolean flags, boolean iform, boolean hasRE) throws IOException {
341 arith8(fos, fos_init, fos32, name, op, cf, result, "8", flags, iform, hasRE);
342 arith16(fos, fos_init, fos32, name, op, cf, result, "16", flags, iform, hasRE);
343 arith32(fos, fos_init, fos32, name, op, cf, result, "32", flags, iform, hasRE);
344 }
345
346 public String arithDynRR(String op, boolean result, boolean cf, boolean flags, String bits, String name) {
347 return " dynamic_arith(data, op, DYN_Reg, DYN_Reg, DYN_"+bits+"bit, '"+op+"', "+(cf?"true":"false")+", "+(result?"true":"false")+", FLAGS_"+name.toUpperCase()+bits+");";

Callers 1

generateAllMethod · 0.95

Calls 3

arith8Method · 0.95
arith16Method · 0.95
arith32Method · 0.95

Tested by

no test coverage detected