Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
- type GRegArray = Array GReg Int
- data Flag
- type FlagArray = Array Flag Bool
- initGReg :: GRegArray
- getGReg :: GRegArray -> GReg -> Int
- getGReg2 :: GRegArray -> GReg -> GReg -> (Int, Int)
- getGRegs :: GRegArray -> [Int]
- modifyGReg :: GRegArray -> GReg -> Int -> GRegArray
- initFlag :: FlagArray
- getFlag :: FlagArray -> Flag -> Bool
- getFlags :: FlagArray -> [Bool]
- modifyFlag :: FlagArray -> Flag -> Bool -> FlagArray
- judgeFCond :: FlagArray -> FCond -> Bool
Note
This is an implementation dependent module. It's better to use functions in Language.Pck.Cpu.State.
Basic types
access to general purpose registers
getGReg2 :: GRegArray -> GReg -> GReg -> (Int, Int) Source
get values of the general purpose register pair
access to flag registers
judgeFCond :: FlagArray -> FCond -> Bool Source
judge a flag condition