Kiran,

I guess the smarter way is to use xpeditor . Compile the program in xpeditor and then excute by pressing F12. cursor will stop in the line excatly where the Soc-7 is(particular line where the problem is). And the only thing remain is just cross verify that statement(may be move commands) and alter as per requirment and compile link.

Let me know in case of any concern.

Regards