| 209 | } |
| 210 | |
| 211 | void RegularOpcodeManager::SetOpcode(EmuOpcode emu_op, uint16 eq_op) { |
| 212 | |
| 213 | //clear out old mapping |
| 214 | uint16 oldop = emu_to_eq[emu_op]; |
| 215 | if(oldop != 0) |
| 216 | eq_to_emu[oldop] = OP_Unknown; |
| 217 | |
| 218 | //use our strategy, since we have it |
| 219 | NormalMemStrategy s; |
| 220 | s.it = this; |
| 221 | s.Set(emu_op, eq_op); |
| 222 | } |
| 223 | |
| 224 | void RegularOpcodeManager::NormalMemStrategy::Set(EmuOpcode emu_op, uint16 eq_op) { |
| 225 | if(uint32(emu_op) >= it->EmuOpcodeCount || eq_op >= it->EQOpcodeCount) |
no test coverage detected