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

Function gen085

source/emulation/cpu/srcgen.cpp:1625–1639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1623void OPCALL teste16r16_16(struct CPU* cpu, struct Op* op);
1624void OPCALL teste16r16_32(struct CPU* cpu, struct Op* op);
1625void gen085(struct GenData* data, struct Op* op) {
1626 if (inlineTestJump(data, op, sFLAGS_TEST16, op->func == testr16r16?"1":"2"))
1627 return;
1628
1629 if (op->func == testr16r16) {
1630 genArithRR(data, "&", "FLAGS_TEST16", "16", r16(op->r1), r16(op->r2), 0, 0, "1");
1631 } else if (op->func==teste16r16_16) {
1632 genArithER(data, "&", "FLAGS_TEST16", "16", getEaa16(op), "w", r16(op->r1), 0, 0,"2");
1633 } else if (op->func==teste16r16_32) {
1634 genArithER(data, "&", "FLAGS_TEST16", "16", getEaa32(op), "w", r16(op->r1), 0, 0,"2");
1635 } else {
1636 kpanic("gen085");
1637 }
1638 data->lazyFlags = sFLAGS_TEST16;
1639}
1640
1641void OPCALL testr32r32(struct CPU* cpu, struct Op* op);
1642void OPCALL teste32r32_16(struct CPU* cpu, struct Op* op);

Callers

nothing calls this directly

Calls 7

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

Tested by

no test coverage detected