-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Tools for PowerPC programs. -- -- TODO @package powerpc @version 0.0.0 module Language.PowerPC.Utils debug :: (Show a) => String -> a -> a debug' :: (Show a) => String -> a -> b -> b -- | PowerPC assembly syntax. module Language.PowerPC.Syntax type Program = [Instruction] data Instruction ADDI :: GPR -> GPR -> Int -> Instruction B :: Int -> Instruction BA :: Int -> Instruction BL :: Int -> Instruction BLA :: Int -> Instruction MTSPR :: GPR -> SR -> Instruction Unknown :: Int -> Int -> Int -> Instruction data SR CTR :: SR LR :: SR XER :: SR SRInvalid :: SR data GPR GPR0 :: GPR GPR1 :: GPR GPR2 :: GPR GPR3 :: GPR GPR4 :: GPR GPR5 :: GPR GPR6 :: GPR GPR7 :: GPR GPR8 :: GPR GPR9 :: GPR GPR10 :: GPR GPR11 :: GPR GPR12 :: GPR GPR13 :: GPR GPR14 :: GPR GPR15 :: GPR GPR16 :: GPR GPR17 :: GPR GPR18 :: GPR GPR19 :: GPR GPR20 :: GPR GPR21 :: GPR GPR22 :: GPR GPR23 :: GPR GPR24 :: GPR GPR25 :: GPR GPR26 :: GPR GPR27 :: GPR GPR28 :: GPR GPR29 :: GPR GPR30 :: GPR GPR31 :: GPR gpr :: Int -> GPR gprIndex :: GPR -> Int instance Show GPR instance Eq GPR instance Show SR instance Eq SR -- | General tools for PowerPC programs. module Language.PowerPC.Simulator simulate :: Int -> Int -> Program -> IO () instance Show Machine -- | Disassembler. module Language.PowerPC.Disassembler disassemble :: ByteString -> Program -- | General tools for PowerPC programs. module Language.PowerPC