0
mirror of https://github.com/sampletext32/ParkanPlayground.git synced 2025-06-20 08:18:36 +03:00
This commit is contained in:
bird_egop
2025-04-17 22:54:19 +03:00
parent 4d2db05a07
commit df453b930f
14 changed files with 340 additions and 192 deletions

View File

@ -34,8 +34,8 @@ public class SIBDecoder
int baseIndex = sib & Constants.SIB_BASE_MASK;
// Map the SIB register indices to RegisterIndex enum values
RegisterIndex index = RegisterMapper.MapModRMToRegisterIndex(indexIndex);
RegisterIndex @base = RegisterMapper.MapModRMToRegisterIndex(baseIndex);
RegisterIndex index = (RegisterIndex)indexIndex;
RegisterIndex @base = (RegisterIndex)baseIndex;
// Special case: ESP/SP (4) in index field means no index register
if (index == RegisterIndex.Sp)