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

Method decode

source/emulation/cpu/decoder.cpp:3682–3695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3680 this->mem = mem;
3681 }
3682 void decode(DecodeData* data, DecodedOp* op) const override {
3683 U8 rm = data->fetch8();
3684
3685 if (rm>=0xC0) {
3686 op->inst = this->reg;
3687 op->reg = G(rm);
3688 op->rm = E(rm);
3689 } else {
3690 op->inst = this->mem;
3691 op->reg = G(rm);
3692 decodeEa(data, op, rm);
3693 }
3694 fetchImm(data, op);
3695 }
3696
3697private:
3698 Instruction reg;

Callers

nothing calls this directly

Calls 2

decodeEaFunction · 0.85
fetch8Method · 0.80

Tested by

no test coverage detected