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

Method decode

source/emulation/cpu/decoder.cpp:3573–3586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3571 this->mem = mem;
3572 }
3573 void decode(DecodeData* data, DecodedOp* op) const override {
3574 U8 rm = data->fetch8();
3575
3576 if (rm>=0xC0) {
3577 op->inst = this->reg;
3578 op->reg = E(rm);
3579 op->rm = G(rm);
3580 } else {
3581 op->inst = this->mem;
3582 op->reg = G(rm);
3583 decodeEa(data, op, rm);
3584 }
3585 fetchImm(data, op);
3586 }
3587
3588private:
3589 Instruction reg;

Callers

nothing calls this directly

Calls 2

decodeEaFunction · 0.85
fetch8Method · 0.80

Tested by

no test coverage detected