hapstone-0.2.0.1: Capstone bindings for Haskell

Copyright(c) Inokentiy Babushkin, 2016
LicenseBSD3
MaintainerInokentiy Babushkin <inokentiy.babushkin@googlemail.com>
Stabilityexperimental
Safe HaskellSafe
LanguageHaskell2010

Hapstone.Internal.XCore

Description

This module contains XCore specific datatypes and their respective Storable instances. Most of the types are used internally and can be looked up here. Some of them are currently unused, as the headers only define them as symbolic constants whose type is never used explicitly, which poses a problem for a memory-safe port to the Haskell language, this is about to get fixed in a future version.

Apart from that, because the module is generated using C2HS, some of the documentation is misplaced or rendered incorrectly, so if in doubt, read the source file.

Synopsis

Documentation

data CsXCoreOp Source #

instruction operand

Constructors

Reg XCoreReg

register value for XcoreOpReg operands

Imm Int32

immediate value for XcoreOpImm operands

Mem XCoreOpMemStruct

baseindexdisp/direct value for XcoreOpMem operands

Undefined

invalid operand value, for XcoreOpInvalid operand

newtype CsXCore Source #

instruction datatype

Constructors

CsXCore [CsXCoreOp]

operand list of this instruction, *MUST* have <= 8 operands, else you'll get a runtime error when you (implicitly) try to write it to memory via it's Storable instance

data XCoreInsn Source #

XCore instructions

Constructors

XcoreInsInvalid 
XcoreInsAdd 
XcoreInsAndnot 
XcoreInsAnd 
XcoreInsAshr 
XcoreInsBau 
XcoreInsBitrev 
XcoreInsBla 
XcoreInsBlat 
XcoreInsBl 
XcoreInsBf 
XcoreInsBt 
XcoreInsBu 
XcoreInsBru 
XcoreInsByterev 
XcoreInsChkct 
XcoreInsClre 
XcoreInsClrpt 
XcoreInsClrsr 
XcoreInsClz 
XcoreInsCrc8 
XcoreInsCrc32 
XcoreInsDcall 
XcoreInsDentsp 
XcoreInsDgetreg 
XcoreInsDivs 
XcoreInsDivu 
XcoreInsDrestsp 
XcoreInsDret 
XcoreInsEcallf 
XcoreInsEcallt 
XcoreInsEdu 
XcoreInsEef 
XcoreInsEet 
XcoreInsEeu 
XcoreInsEndin 
XcoreInsEntsp 
XcoreInsEq 
XcoreInsExtdp 
XcoreInsExtsp 
XcoreInsFreer 
XcoreInsFreet 
XcoreInsGetd 
XcoreInsGet 
XcoreInsGetn 
XcoreInsGetr 
XcoreInsGetsr 
XcoreInsGetst 
XcoreInsGetts 
XcoreInsInct 
XcoreInsInit 
XcoreInsInpw 
XcoreInsInshr 
XcoreInsInt 
XcoreInsIn 
XcoreInsKcall 
XcoreInsKentsp 
XcoreInsKrestsp 
XcoreInsKret 
XcoreInsLadd 
XcoreInsLd16s 
XcoreInsLd8u 
XcoreInsLda16 
XcoreInsLdap 
XcoreInsLdaw 
XcoreInsLdc 
XcoreInsLdw 
XcoreInsLdivu 
XcoreInsLmul 
XcoreInsLss 
XcoreInsLsub 
XcoreInsLsu 
XcoreInsMaccs 
XcoreInsMaccu 
XcoreInsMjoin 
XcoreInsMkmsk 
XcoreInsMsync 
XcoreInsMul 
XcoreInsNeg 
XcoreInsNot 
XcoreInsOr 
XcoreInsOutct 
XcoreInsOutpw 
XcoreInsOutshr 
XcoreInsOutt 
XcoreInsOut 
XcoreInsPeek 
XcoreInsRems 
XcoreInsRemu 
XcoreInsRetsp 
XcoreInsSetclk 
XcoreInsSet 
XcoreInsSetc 
XcoreInsSetd 
XcoreInsSetev 
XcoreInsSetn 
XcoreInsSetpsc 
XcoreInsSetpt 
XcoreInsSetrdy 
XcoreInsSetsr 
XcoreInsSettw 
XcoreInsSetv 
XcoreInsSext 
XcoreInsShl 
XcoreInsShr 
XcoreInsSsync 
XcoreInsSt16 
XcoreInsSt8 
XcoreInsStw 
XcoreInsSub 
XcoreInsSyncr 
XcoreInsTestct 
XcoreInsTestlcl 
XcoreInsTestwct 
XcoreInsTsetmr 
XcoreInsStart 
XcoreInsWaitef 
XcoreInsWaitet 
XcoreInsWaiteu 
XcoreInsXor 
XcoreInsZext 
XcoreInsEnding