History log of /seL4-l4v-10.1.1/HOL4/examples/l3-machine-code/lib/assemblerLib.sig
Revision Date Author Comments
# dff13f9d 24-Feb-2014 Anthony Fox <anthony.fox@cl.cam.ac.uk>

Extend m0AssemblerLib and armAssemblerLib to include functions for instruction disassembly.

For example:

> print_m0_disassemble `f3ef 8100`;
mrs r1, apsr ; f3ef 8100
val it = (): unit


# cc9dd295 21-Feb-2014 Anthony Fox <anthony.fox@cl.cam.ac.uk>

Add assembly code parsing/printing support for the M0 and ARMv7 models.

There are new entry points to the decompiler. These take a function that maps a quotation (containing machine or assembly code) into a list of strings (typically hex). This facilitate the input of ARM assembly code. For example, the functions:

m0_decompLib.m0_decompile_code
m0_core_decompLib.m0_core_decompile_code
arm_decompLib.arm_decompile_code
arm_core_decompLib.arm_core_decompile_code

are provided with type

: string -> string quotation -> Thm.thm * Thm.thm