

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Arm assembly and c code examples for various microprocessor operations, including signed integer addition, multiplication loops, and memory loading. It also covers i/o port manipulation using the 8-bit i/o port at address 0x40005120. C keywords and optimization are discussed in relation to preventing unwanted code replacement.
Typology: Exams
1 / 2
This page cannot be seen from the preview
Don't miss anything!
ELM333 μ-processor Final 2013 studentname :
r4 = r0 + 64r
Assume that the integers are signed.
mov r4, # mov r5, # LOOP: mul r5, r5, r subs r4, r4, # bgt LOOP
mov r4, #0x2FC0 0000 mov r5, # mov r0, # LOOP: ldr r1, [r4, r5, LSL#2] mul r0, r0, r subs r5, r5, # bge LOOP
mov r4, #0x2FC0 0000 mov r5, # mov r0, # LOOP: str r0, [r4, r5, LSL#2] subs r5, r5, # bge LOOP
cmp r4,#
ble END
add r0, r0,#
END:
if( ){
}
capture signal
clock
count value 99 98 97 96 95 94