This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problem excute thumb instruction : blx

see below:
the program encounter an undefined instruction error when execute the blx instruction.

    [0xb510]   push     {r4,r14}
    [0xb09c]   sub      r13,#0x70
    [0xa803]   add      r0,r13,#0xc
    [0x2264]   mov      r2,#0x64
    [0x4911]   ldr      r1,0x0000d4c8 ; = #0x0000d4e8
[0xe8e8f000]   blx      0xd658  ; (Image$$ZI$$Limit + 0x8b4)
    [0x4c10]   ldr      r4,0x0000d4cc ; = #0x0000d54c
    [0x2002]   mov      r0,#2
    [0x6861]   ldr      r1,[r4,#4]
[0xeff0f7ff]   blx      0xd470  ; (Image$$ZI$$Limit + 0x6cc)
    [0x1c02]   mov      r2,r0

I checked the format of blx instruction, it seems the instruction is valid. I have no idea why it throws the " undefined instruction".

0