

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


“The ARM architecture describes a family of RISC-based computer processors designed and licensed by British company ARM Holdings. It was first developed in the 1980s and globally as of 2013 is the most widely used 32-bit instruction set architecture in terms of quantity produced. In 2011 alone, producers of chips based on ARM architectures reported shipments of 7.9 billion ARM-based processors, representing 95% of smartphones, 90% of hard disk drives, 40% of digital televisions and set-top boxes, 15% of microcontrollers and 20% of mobile computers.” -- (http://en.wikipedia.org/wiki/ARM_architecture)
R0: (Label X:) 50 16 4
Register File Memory
Reg. indirect with scaled reg. post-autoindexed
LDR R0, [R1], R2, LSL #
LDR R0, [R1], #8 Reg. indirect post-autoindexed
Reg. indirect with scaled reg. pre-autoindexed
LDR R 0 , [R1, R2, LSL #2]!
Pre-autoindexed immediate offset
LDR R0, [R1, #-8]!
LDR R0, [R1, -R3, ASR #1]
Reg. indirect with scaled reg. indexed (pre-indexed)
LDR R0, [R1, R2, LSL #2]
LDR R0, [R1, R2] Reg. indirect with reg. indexed
LDR R0, [R1, -R2]
LDR R0, [R1] Register indirect
LDR R0, X “global label”
Assembly Language Statement Addressing Mode Register Values After Execution
integer firstUnsortedIndex, testIndex, elementToInsert; for firstUnsortedIndex = 1 to (length-1) do testIndex = firstUnsortedIndex-1; elementToInsert = numbers[firstUnsortedIndex]; while (testIndex >=0) AND (numbers[testIndex] > elementToInsert ) do numbers[ testIndex + 1 ] = numbers[ testIndex ]; testIndex = testIndex - 1; end while numbers[ testIndex + 1 ] = elementToInsert; end for