Generated constants file via python script

This commit is contained in:
Antonio Parata
2015-10-14 16:34:10 +02:00
parent a45bc0c8cd
commit 59c3f1b315
9 changed files with 2387 additions and 2504 deletions

View File

@@ -39,7 +39,7 @@ and OutHook = delegate of Unicorn * Int32 * Int32 * Int32 * Object -> unit
and SyscallHook = delegate of Unicorn * Object -> unit
// the managed unicorn engine
and Unicorn(arch: UInt32, mode: UInt32) =
and Unicorn(arch: Int32, mode: Int32) =
// hook callback list
let _codeHooks = new Dictionary<IntPtr, (CodeHook * Object)>()
@@ -70,7 +70,7 @@ and Unicorn(arch: UInt32, mode: UInt32) =
do
let mem = Marshal.AllocHGlobal(IntPtr.Size)
_eng <- [|new UIntPtr(mem.ToPointer())|]
let err = NativeUnicornEngine.uc_open(arch, mode, _eng)
let err = NativeUnicornEngine.uc_open(uint32 arch, uint32 mode, _eng)
checkResult(err, "Unable to open the Unicorn Engine")
member this.MemMap(address: UInt64, size: UIntPtr, perm: Int32) =