Multiply mul r0 r1 r2 r0 v bit wise and

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 1000] - Store 2 least significant bytes of r0 to MEM[r1 + 1000]. - strb: Store byte - strb r0, [r1, #1000] - Store 1 least significant byte of r0 to MEM[r1 + 1000]. 4. ARM Arithmetic and Logical Instructions i). Add - add r0, r1, r2 // r0 = ii). Subtract - sub r0, r1, r2 // r0 = iii). Reverse Subtract - rsb r0, r1, r2 // r0 = iv). Multiply - mul r0, r1, r2 // r0 = v). Bit- wise And - and r0, r1, r2 // r0 = vi). Bit- wise Or - orr r0, r1, r2 // r0 = vii). Bit- wise Exclusive- or - xor r0, r1, r2 // r0 = viii). Bit Clear - bic r0, r1, r2 // r0 = 5. ARM Move Instructions - Move - mov r0, r1 - Move(negated) - mvn r0, r2 r1 + r2; r1 – r2; r2 – r1; r1 * r2; r1 & r2; r1 | r2; r1 XOR r2; r1 & ~r2; // r0 = r1; // r0 = ~r1; 6. ARM Flexible Operand2 - The last operand of most ARM instructions can be called opera...
View Full Document

Ask a homework question - tutors are online