Menu

#26 OnBA: problems with inline asm

OnBoard_Asm
open
nobody
None
5
2004-01-13
2004-01-13
No

As per Philippe Guillot's email:

"In the assembler code like
asm void foo()
{
...
mylabel
...
bne mylabel
rts
}
does not produce the expected code (I think that the
bug is in the routine that optimize branches, but I am
not sure). If another instruction preceed the rts, the
code is correct."

This is most likely a problem with the assembler rather
than the compiler, but I've not checked.

Discussion

  • Steve Little

    Steve Little - 2004-01-14

    Logged In: YES
    user_id=583634

    Clarification from Philippe:

    [the problem is that...]
    "the rts instruction is missing in the code.
    Code is correct if another instruction preceed the rts (such
    as "unkl a6" for instance)"

     
  • John Wilund

    John Wilund - 2004-01-15

    Logged In: YES
    user_id=574706

    I Second! Please make it a vote.

     

Log in to post a comment.