aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/State/PState.cs
blob: 40636c8705803b3a3eef9f894b1955e8fb02f727 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
    }
}