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?
"I am new to assembly language programming"
Start with some basics:
http://www.keil.com/books/armbooks.asp
http://www.keil.com/support/man/docs/gsac/
http://www.keil.com/support/man/docs/uv4/
"results are displayed only if I select STOP, not otherwise"
This is the documented bahaviour! See the note at the foot of this page: http://www.keil.com/support/man/docs/uv4/uv4_db_dbg_cpuregs.htm