This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARM Assembly code running continuously

I am new to assembly language programming and tried running the following MOV and ADD program in Keil uvision 4.03

AREA     ARMex, CODE, READONLY
                                ; Name this block of code ARMex
        ENTRY                   ; Mark first instruction to execute
add
        MOV r0,r1,LSL #1
                ADD r3,r0,r2
                END
stop    b STOP

I was able to build it successfully. But while running the code, the code is running continuously and when I select STOP, it displays the results correctly in the register window. But the results are displayed only if I select STOP, not otherwise. Where am I going wrong?

0