0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-20 16:18:37 +03:00

Fixed floating point comparison handlers for FCOM ST(i) and FCOMP ST(i) instructions

This commit is contained in:
bird_egop
2025-04-18 01:25:34 +03:00
parent 84d5652a62
commit 2a8cf9534e
6 changed files with 47 additions and 57 deletions

View File

@ -35,7 +35,8 @@ public class FcompFloat32Handler : InstructionHandler
byte modRm = Decoder.PeakByte();
byte reg = (byte)((modRm >> 3) & 0x7);
return reg == 3;
// special handling of modRM for D8 D8+i FCOMP ST(i)
return reg == 3 && modRm is < 0xD8 or > 0xDE;
}
/// <summary>