/// <summary> /// Processes a data processing instruction for the given CPU. /// </summary> public static void DataProcessing(ARM7TDMi cpu, uint instr) { //Get the flags & small data out ([I]mmediate, [S]et condition codes). bool op2Immediate = (instr & 0x02000000) == 0x2000000; bool setCondCodes = (instr & 0x00100000) == 0x00100000; uint op2Data = (instr & 0x00000FFF) >> 12; uint opCode = (instr & 0x01E00000) >> 21; //Get the destination register as a reference. ref uint Rd = ref cpu.reg.Get((int)((instr & 0x0000F000) >> 12));
public void Setup() { CPU = new ARM7TDMi(); }