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

Function newInstruction

source/test/testCPU.cpp:175–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173}
174
175void 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
193void newInstruction(int instruction, int flags, U8 prefix = 0, U8 prefix2 = 0) {
194 newInstruction(flags);

Callers 15

doF32InstructionFunction · 0.85
F32ComBaseFunction · 0.85
FSTFloatFunction · 0.85
doFLDStiFunction · 0.85
doFXCHSTiFunction · 0.85
doFSTPSTiFunction · 0.85
doFCHSFunction · 0.85
doFABSFunction · 0.85
doFTSTFunction · 0.85
doFXAMFunction · 0.85
doFLD1Function · 0.85
doFLDL2TFunction · 0.85

Calls 3

pushCode8Function · 0.85
clearOpCacheMethod · 0.80
setFlagsMethod · 0.45

Tested by

no test coverage detected