haskus-system-0.6.0.0: Haskus system programming framework

Safe HaskellNone
LanguageHaskell2010

Haskus.Arch.X86_64.ISA.RegisterFile

Description

Module handling registers

Synopsis

Documentation

data Register Source #

A register

Constructors

Register 

Fields

data RegisterFile Source #

Register file

Constructors

RegisterFile 

Fields

makeRegisterFile :: [Register] -> RegisterFile Source #

Create register file from a list of registers

makeRegSequence :: Word32 -> Word32 -> Word32 -> [String] -> [Register] Source #

Create a sequence of registers of the same size with "pitch" offset between each

mergeRegisterFiles :: [RegisterFile] -> RegisterFile Source #

Merge several register files into a big one (non overlapping)

aliasedRegistersWithOffset :: RegisterFile -> String -> [(Register, Int)] Source #

Get registers overlapping a given register and their offsets in the register file

aliasedRegisters :: RegisterFile -> String -> [Register] Source #

Get registers overlapping a given register