Update AThreadState.cs
This commit is contained in:
parent
f15002d0c4
commit
2a4ca6e07e
1 changed files with 16 additions and 1 deletions
|
@ -145,5 +145,20 @@ namespace ChocolArm64.State
|
||||||
{
|
{
|
||||||
Undefined?.Invoke(this, new AInstUndefinedEventArgs(Position, RawOpCode));
|
Undefined?.Invoke(this, new AInstUndefinedEventArgs(Position, RawOpCode));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal bool GetFpcrFlag(FPCR Flag)
|
||||||
|
{
|
||||||
|
return (Fpcr & (1 << (int)Flag)) != 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
internal void SetFpsrFlag(FPSR Flag)
|
||||||
|
{
|
||||||
|
Fpsr |= 1 << (int)Flag;
|
||||||
|
}
|
||||||
|
|
||||||
|
internal ARoundMode FPRoundingMode()
|
||||||
|
{
|
||||||
|
return (ARoundMode)((Fpcr >> (int)FPCR.RMode) & 3);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue