Dec 13, 2021
06:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 13, 2021
06:21 AM
Hey,
I am stuck with the following code.
movh.a a15, #0x8000
lea a15, [a15]0x4000 //0x80004000 contains a word (not 0, say 80808080)
ld.w d15, [a15+] //load a word from 80004000 into d15. a15 + = 4
91 00 00 F8
D9 FF 00 04
44 FF
But d15 still contains 0. Processor 1766.
What have I done wrong?
ld.w d15, [a15 ] // without increment it works just fine
Labels
- Labels:
-
Aurix
1 Reply
Dec 17, 2021
05:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dec 17, 2021
05:37 AM
Hello,
Can you tell which version of Tricore/device and also the compiler used here? You seem to have provided the opcode/operand details for the first two instructions, can you also provide opcode/operand details for ld.w d15, [a15+]? Also, what is the value of a15 after the execution of ld.w?
Thanks.