diff options
Diffstat (limited to 'ARMeilleure/State/NativeContext.cs')
-rw-r--r-- | ARMeilleure/State/NativeContext.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ARMeilleure/State/NativeContext.cs b/ARMeilleure/State/NativeContext.cs index f911f762..11ab5ca3 100644 --- a/ARMeilleure/State/NativeContext.cs +++ b/ARMeilleure/State/NativeContext.cs @@ -34,6 +34,12 @@ namespace ARMeilleure.State GetStorage().ExclusiveAddress = ulong.MaxValue; } + public ulong GetPc() + { + // TODO: More precise tracking of PC value. + return GetStorage().DispatchAddress; + } + public unsafe ulong GetX(int index) { if ((uint)index >= RegisterConsts.IntRegsCount) |