MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / CalculateAFForDecimal

Method CalculateAFForDecimal

FEXCore/Source/Interface/Core/OpcodeDispatcher.cpp:2812–2817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2810}
2811
2812Ref OpDispatchBuilder::CalculateAFForDecimal(Ref A) {
2813 auto Nibble = _And(OpSize::i64Bit, A, Constant(0xF));
2814 auto Greater = Select01(OpSize::i64Bit, CondClassType {COND_UGT}, Nibble, Constant(9));
2815
2816 return _Or(OpSize::i64Bit, LoadAF(), Greater);
2817}
2818
2819void OpDispatchBuilder::DAAOp(OpcodeArgs) {
2820 CalculateDeferredFlags();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected