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

Function gen084

source/emulation/cpu/srcgen.cpp:1606–1620  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1604void OPCALL teste8r8_16(struct CPU* cpu, struct Op* op);
1605void OPCALL teste8r8_32(struct CPU* cpu, struct Op* op);
1606void gen084(struct GenData* data, struct Op* op) {
1607 if (inlineTestJump(data, op, sFLAGS_TEST8, op->func == testr8r8?"1":"2"))
1608 return;
1609
1610 if (op->func == testr8r8) {
1611 genArithRR(data, "&", "FLAGS_TEST8", "8", r8(op->r1), r8(op->r2), 0, 0, "1");
1612 } else if (op->func==teste8r8_16) {
1613 genArithER(data, "&", "FLAGS_TEST8", "8", getEaa16(op), "b", r8(op->r1), 0, 0,"2");
1614 } else if (op->func==teste8r8_32) {
1615 genArithER(data, "&", "FLAGS_TEST8", "8", getEaa32(op), "b", r8(op->r1), 0, 0,"2");
1616 } else {
1617 kpanic("gen084");
1618 }
1619 data->lazyFlags = sFLAGS_TEST8;
1620}
1621
1622void OPCALL testr16r16(struct CPU* cpu, struct Op* op);
1623void OPCALL teste16r16_16(struct CPU* cpu, struct Op* op);

Callers

nothing calls this directly

Calls 7

inlineTestJumpFunction · 0.85
genArithRRFunction · 0.85
r8Function · 0.85
genArithERFunction · 0.85
getEaa16Function · 0.85
getEaa32Function · 0.85
kpanicFunction · 0.85

Tested by

no test coverage detected