We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a946d3 commit c7114feCopy full SHA for c7114fe
hooks/blhook.c
@@ -120,7 +120,7 @@ int calcbl(int adr, int target){
120
/* The BL instruction is actually two Thumb instructions, with one
121
setting the high part of the LR and the other setting the lo part
122
while swapping LR and PC. */
123
- int hi=0xF000 | ((offset&0xFFF800)>>11);
+ int hi=0xF000 | ((offset&0x3FF800)>>11);
124
int lo=0xF800 | (offset&0x7FF);
125
126
//Return the pair as a single 32-bit word.
0 commit comments