aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/State/PState.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ChocolArm64/State/PState.cs')
-rw-r--r--ChocolArm64/State/PState.cs23
1 files changed, 23 insertions, 0 deletions
diff --git a/ChocolArm64/State/PState.cs b/ChocolArm64/State/PState.cs
new file mode 100644
index 00000000..40636c87
--- /dev/null
+++ b/ChocolArm64/State/PState.cs
@@ -0,0 +1,23 @@
+using System;
+
+namespace ChocolArm64.State
+{
+ [Flags]
+ enum PState
+ {
+ VBit = 28,
+ CBit = 29,
+ ZBit = 30,
+ NBit = 31,
+
+ V = 1 << VBit,
+ C = 1 << CBit,
+ Z = 1 << ZBit,
+ N = 1 << NBit,
+
+ Nz = N | Z,
+ Cv = C | V,
+
+ Nzcv = Nz | Cv
+ }
+}