Skip to content

Instantly share code, notes, and snippets.

@ss23
Created July 11, 2020 11:36
Show Gist options
  • Save ss23/71d9b41948fbde55afca66710b0797b2 to your computer and use it in GitHub Desktop.
Save ss23/71d9b41948fbde55afca66710b0797b2 to your computer and use it in GitHub Desktop.
typedef enum uc_mode {
UC_MODE_LITTLE_ENDIAN = 0, // little-endian mode (default mode)
UC_MODE_BIG_ENDIAN = 1 << 30, // big-endian mode
// arm / arm64
UC_MODE_ARM = 0, // ARM mode
UC_MODE_THUMB = 1 << 4, // THUMB mode (including Thumb-2)
UC_MODE_MCLASS = 1 << 5, // ARM's Cortex-M series (currently unsupported)
UC_MODE_V8 = 1 << 6, // ARMv8 A32 encodings for ARM (currently unsupported)
// arm (32bit) cpu types
UC_MODE_ARM926 = 1 << 7, // ARM926 CPU type
UC_MODE_ARM946 = 1 << 8, // ARM946 CPU type
UC_MODE_ARM1176 = 1 << 9, // ARM1176 CPU type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment