Skip to content

Commit

Permalink
arm: added some alias registers
Browse files Browse the repository at this point in the history
  • Loading branch information
aquynh committed Dec 4, 2013
1 parent 67f1297 commit b39ef0b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bindings/java/capstone/Arm_const.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ public class Arm_const {
public static final int ARM_REG_R10 = 76;
public static final int ARM_REG_R11 = 77;
public static final int ARM_REG_R12 = 78;
public static final int ARM_REG_R13 = ARM_REG_SP;
public static final int ARM_REG_R14 = ARM_REG_LR;
public static final int ARM_REG_R15 = ARM_REG_PC;
public static final int ARM_REG_S0 = 79;
public static final int ARM_REG_S1 = 80;
public static final int ARM_REG_S2 = 81;
Expand Down
3 changes: 3 additions & 0 deletions bindings/python/capstone/arm_const.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@
ARM_REG_R10 = 76
ARM_REG_R11 = 77
ARM_REG_R12 = 78
ARM_REG_R13 = ARM_REG_SP
ARM_REG_R14 = ARM_REG_LR
ARM_REG_R15 = ARM_REG_PC
ARM_REG_S0 = 79
ARM_REG_S1 = 80
ARM_REG_S2 = 81
Expand Down
5 changes: 5 additions & 0 deletions include/arm.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,12 @@ typedef enum arm_reg {
ARM_REG_S29,
ARM_REG_S30,
ARM_REG_S31,

ARM_REG_MAX,

ARM_REG_R13 = ARM_REG_SP,
ARM_REG_R14 = ARM_REG_LR,
ARM_REG_R15 = ARM_REG_PC,
} arm_reg;

// ARM instruction
Expand Down

0 comments on commit b39ef0b

Please sign in to comment.