Module 2 Chapter 3
Module 2 Chapter 3
instructions
data types
processor registers
main memory hardware
input/output model
addressing modes
Programmers and system engineers rely on the ISA for guidance on how to program various
activities.
Instruction sets work with other important parts of a computer, such as compilers and interpreters.
Those components translate high-level programming code into machine code that the processor
can understand.
Think of the ISA as a programmer's gateway into the inner workings of a computer.
It provides five types of shifts and rotates which can be applied to Operand2. (These are not operations
themselves in ARM mode.)
Certain ARM instructions such as MUL, CLZ and QADD cannot use the barrel shifter.
Pre-processing or shift occurs within the cycle time of the instruction. This is useful for multiplying
or dividing a constant by a power of 2.
Instructions that uses Barrel shifter is illustrated with examples.
3.1.3 Arithmetic Instruction
Used to carry out addition and subtraction of 32 bit signed and unsigned values.
3.7 Programs
to find the sum of first 10 numbers
Find the factorial of a number
Result is stored in register R0.