Binsec.InstructionCanonical representation of an instruction
type t = private {address : Virtual_address.t;size : Size.Byte.t;opcode : Binstream.t;mnemonic : Mnemonic.t;dba_block : Dhunk.t;}val address : t -> Virtual_address.tAccessors
val size : t -> Size.Byte.tval opcode : t -> Binstream.tval mnemonic : t -> Mnemonic.tmodule type Basic = sig ... endmodule Generic : sig ... endval empty : Dba_types.Caddress.t -> tval create :
Virtual_address.t ->
Size.Byte.t ->
Binstream.t ->
Mnemonic.t ->
Dhunk.t ->
tval unsupported :
Virtual_address.t ->
Size.Byte.t ->
Binstream.t ->
Mnemonic.t ->
tCreate an instruction without supporting DBA semantics.
This function should not be used when the menmonic is supported. It will fail in that case.
val of_generic_instruction : Virtual_address.t -> Generic.t -> Dhunk.t -> tval of_dba_block : ?mnemonic:Mnemonic.t -> Virtual_address.t -> Dhunk.t -> tval set_mnemonic : Mnemonic.t -> t -> tval is_decoded : t -> boolval stop : Virtual_address.t -> tval get_caddress : t -> Dba_types.Caddress.tval start : t -> intinclude Sigs.PRINTABLE with type t := tval pp : Format.formatter -> t -> unit