I was looking through the code generated by the compiler
and believe I came across an error in the assembler.
The function being compiled returns a -1 as an error
condition.  The assembly code generated by the compiler
produces the following:
    mov    #llo(-1),r15

However, msp430-objectdump disassembles the elf file as:
    12ae:  3f 43    pop r15

I believe 0x3f43 isin fact 'pop r15' and that 'mov #-1,r15'
is 0x3f41.  Unfortunately I do not have a good op-code map.
(If someone could e-mail one to me, it would be much
appreciated.)

The sections of the dump file and generated assembly file
are attached.

-Bill Knight
R O SoftWare

Attachment: tst.asm
Description: Binary data

Attachment: tst.dmp
Description: Binary data

Reply via email to