Nagaraju Boya

Assembly code porting from GCC to CodeWarrior

Discussion created by Nagaraju Boya on Jul 6, 2012
Latest reply on Jul 6, 2012 by Nagaraju Boya

Please let me know how to port the below code from GCC to CodeWarrior. This whole code is embedded in C code.

 

 __asm__ __volatile__ (
            "ldd   #512\n"
            "tthclr:\n"
            "movw   #0, 2,y+\n"
            "dbne   d, tthclr\n"
            :
            : "y"(ram_data)
            : "d");

 

The problem is with the last three lines of code.

 

            :
            : "y"(ram_data)
            : "d");

 

 

Thank you,

Deepak

Outcomes