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

Function aam

source/emulation/cpu/normal/instructions.cpp:444–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442}
443
444U32 aam(CPU* cpu, U32 value) {
445 if (value) {
446 AH = AL / value;
447 AL = AL % value;
448 cpu->lazyFlagType = FLAGS_NONE;
449 cpu->setSF(AL & 0x80);
450 cpu->setZF(AL == 0);
451 cpu->setPFonValue(AL);
452 cpu->removeCF();
453 cpu->removeOF();
454 cpu->removeAF();
455 return 1;
456 } else {
457 cpu->prepareException(EXCEPTION_DIVIDE, 0);
458 return 0;
459 }
460}

Callers 1

normal_aamFunction · 0.70

Calls 7

setSFMethod · 0.80
setZFMethod · 0.80
setPFonValueMethod · 0.80
removeCFMethod · 0.80
removeOFMethod · 0.80
removeAFMethod · 0.80
prepareExceptionMethod · 0.80

Tested by

no test coverage detected