bytepatch-0.4.0: Patch byte-representable data in a bytestream
Safe HaskellSafe-Inferred
LanguageHaskell2010

Binrep.Type.Assembly.Assemble

Synopsis

Documentation

class Assemble arch where Source #

Methods

assemble :: [AsmInstr arch] -> Either String (MachineCode arch) Source #

Instances

Instances details
Assemble 'ArmV8ThumbLE Source # 
Instance details

Defined in Binrep.Type.Assembly.Assemble

assemble1 :: forall arch. Assemble arch => AsmInstr arch -> Either String (MachineCode arch) Source #

prepInstrs :: forall arch. [AsmInstr arch] -> [String] Source #

TODO This is stupid because the assembler takes a '[String]'. Great for end-user, poor for performance. I want the option to give it a ByteString that I've already prepared (as is the interface).

prepInstrs' :: forall arch. [AsmInstr arch] -> ByteString Source #

Ideally, the assembler takes a raw ByteString. A ShortByteString isn't appropriate, because it could be quite large. But this way, this function is basically "compose a bunch of short bytestrings into one big one".