Kishor S. wrote:
Ok, thanks
but where is jump locations ?
see line 16, brcs 2f
see line 20, brcs 3f
assembler shows an error on this instructions
These notations are from C inline assembly language, which is very different from an directly usable assembly language.
The understanding of this crude notation is simple: the number describes the relative branch distance (in instruction words), the trailing character denotes, if it is a forward branch or a backward branch. Of course the 'f' stands for 'forward'.
So your task is: count instruction words up from the branch instruction and insert a label at found point in source code. Finally replace the branch target parameter by the name of this label.