| 173 | } |
| 174 | |
| 175 | void newInstruction(int flags) { |
| 176 | cseip = CODE_ADDRESS; |
| 177 | cpu->lazyFlagType = FLAGS_NONE; |
| 178 | cpu->setFlags(flags, FMASK_ALL); |
| 179 | //cpu.blocks.clear(); |
| 180 | EAX = 0; |
| 181 | ECX = 0; |
| 182 | EDX = 0; |
| 183 | EBP = 0; |
| 184 | ESP = 4096; |
| 185 | EBP = 0; |
| 186 | ESI = 0; |
| 187 | EDI = 0; |
| 188 | cpu->eip.u32 = 0; |
| 189 | memory->clearOpCache(); |
| 190 | cpu->mxcsr = 0x1F80; |
| 191 | } |
| 192 | |
| 193 | void newInstruction(int instruction, int flags, U8 prefix = 0, U8 prefix2 = 0) { |
| 194 | newInstruction(flags); |
no test coverage detected