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

refactor modrm decoder more

This commit is contained in:
bird_egop
2025-04-16 19:14:11 +03:00
parent a91d6af8fc
commit 193f9cd2d8
6 changed files with 16 additions and 68 deletions

View File

@ -36,7 +36,7 @@ public class DisplacementMemoryOperand : MemoryOperand
public override string ToString()
{
string sign = Displacement >= 0 ? "+" : "-";
var registerName = ModRMDecoder.GetRegisterName(BaseRegister, 32);
var registerName = RegisterMapper.GetRegisterName(BaseRegister, 32);
string formattedDisplacement = $"0x{Displacement:X2}";