Code execution taking ages!!

Hello All,

below is a small segment of the written code.

However, it seems to me that executing this takes forever and the target CPU seems to go into an infinite loop.I have to stop the debugging everytime because it stalls there and then when I see the memory map it seems that the data has been written.

Please let me know if there is some issue in the code.

poll
STRR8, [R3],#4
SUBSR7, R7, #1
CMP
R7,#0
BNEpoll

thanks!! FYI: I am using TI Stellaris Lm4F120 as my target board.

BR,

\Kashif

More questions in this forum