Tricore Assembler Problem With 32bit Instructions

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User20098
Level 1
Level 1
First reply posted First question asked
Hey all,

Wondering if someone can shed some light on a problem I am having with the tricore compiler.

Disassembling a snippet of code in my binary file shows this described by IDA:
ld32.h d15, [a1]-0x4676

However, when I try to execute the exact same code in assembly language through the compiler it gives me an opcode/operand mismatch error:
__asm("ld.h %d15, [%a1]-0x4676");

ERROR:
error: Opcode/operand mismatch: ld.h %d15,[%a1]-0x4676

I have tried writing the ld.h instruction as ld32.h already and the compiler simply doesn't understand this.

Is there something trivial I am missing?

Thanks in advance,

C!
0 Likes
0 Replies