(* .NET bindings for the UnicornEngine Emulator Engine Copyright(c) 2015 Antonio Parata This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *) namespace UnicornEngine.Const open System [] module Common = let UC_API_MAJOR = 0 let UC_API_MINOR = 9 let UC_SECOND_SCALE = 1000000 let UC_MILISECOND_SCALE = 1000 let UC_ARCH_ARM = 1 let UC_ARCH_ARM64 = 2 let UC_ARCH_MIPS = 3 let UC_ARCH_X86 = 4 let UC_ARCH_PPC = 5 let UC_ARCH_SPARC = 6 let UC_ARCH_M68K = 7 let UC_ARCH_MAX = 8 let UC_MODE_LITTLE_ENDIAN = 0 let UC_MODE_ARM = 0 let UC_MODE_16 = 2 let UC_MODE_32 = 4 let UC_MODE_64 = 8 let UC_MODE_THUMB = 16 let UC_MODE_MCLASS = 32 let UC_MODE_V8 = 64 let UC_MODE_MICRO = 16 let UC_MODE_MIPS3 = 32 let UC_MODE_MIPS32R6 = 64 let UC_MODE_V9 = 16 let UC_MODE_QPX = 16 let UC_MODE_BIG_ENDIAN = 1073741824 let UC_MODE_MIPS32 = 4 let UC_MODE_MIPS64 = 8 let UC_ERR_OK = 0 let UC_ERR_NOMEM = 1 let UC_ERR_ARCH = 2 let UC_ERR_HANDLE = 3 let UC_ERR_MODE = 4 let UC_ERR_VERSION = 5 let UC_ERR_READ_UNMAPPED = 6 let UC_ERR_WRITE_UNMAPPED = 7 let UC_ERR_FETCH_UNMAPPED = 8 let UC_ERR_HOOK = 9 let UC_ERR_INSN_INVALID = 10 let UC_ERR_MAP = 11 let UC_ERR_WRITE_PROT = 12 let UC_ERR_READ_PROT = 13 let UC_ERR_FETCH_PROT = 14 let UC_ERR_ARG = 15 let UC_ERR_READ_UNALIGNED = 16 let UC_ERR_WRITE_UNALIGNED = 17 let UC_ERR_FETCH_UNALIGNED = 18 let UC_ERR_HOOK_EXIST = 19 let UC_MEM_READ = 16 let UC_MEM_WRITE = 17 let UC_MEM_FETCH = 18 let UC_MEM_READ_UNMAPPED = 19 let UC_MEM_WRITE_UNMAPPED = 20 let UC_MEM_FETCH_UNMAPPED = 21 let UC_MEM_WRITE_PROT = 22 let UC_MEM_READ_PROT = 23 let UC_MEM_FETCH_PROT = 24 let UC_HOOK_INTR = 1 let UC_HOOK_INSN = 2 let UC_HOOK_CODE = 4 let UC_HOOK_BLOCK = 8 let UC_HOOK_MEM_READ_UNMAPPED = 16 let UC_HOOK_MEM_WRITE_UNMAPPED = 32 let UC_HOOK_MEM_FETCH_UNMAPPED = 64 let UC_HOOK_MEM_READ_PROT = 128 let UC_HOOK_MEM_WRITE_PROT = 256 let UC_HOOK_MEM_FETCH_PROT = 512 let UC_HOOK_MEM_READ = 1024 let UC_HOOK_MEM_WRITE = 2048 let UC_HOOK_MEM_FETCH = 4096 let UC_HOOK_MEM_UNMAPPED = 112 let UC_HOOK_MEM_PROT = 896 let UC_HOOK_MEM_READ_INVALID = 144 let UC_HOOK_MEM_WRITE_INVALID = 288 let UC_HOOK_MEM_FETCH_INVALID = 576 let UC_HOOK_MEM_INVALID = 1008 let UC_PROT_NONE = 0 let UC_PROT_READ = 1 let UC_PROT_WRITE = 2 let UC_PROT_EXEC = 4 let UC_PROT_ALL = 7