ARM-Reference-Card

ARM-Reference-Card - ARM Instruction Set Quick Reference...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

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

Unformatted text preview: ARM Instruction Set Quick Reference Card Key to Tables {cond} Refer to Table Condition Field {cond} <Oprnd2> Refer to Table Oprnd2 {field} Refer to Table Field S Sets condition codes (optional) B Byte operation (optional) H Halfword operation (optional) T Forces address translation. Cannot be used with pre-indexed addresses <a_mode1> Refer to Table Addressing Mode 1 <a_mode2> Refer to Table Addressing Mode 2 <a_mode3> Refer to Table Addressing Mode 3 <a_mode4> Refer to Table Addressing Mode 4 <a_mode5> Refer to Table Addressing Mode 5 <a_mode6> Refer to Table Addressing Mode 6 #32_Bit_Immed A 32-bit constant, formed by right-rotating an 8-bit value by an even number of bits Operation Assembler S updates Action Notes Move Move MOV{cond}{S} Rd, <Oprnd2> N Z C Rd:= <Oprnd2> NOT MVN{cond}{S} Rd, <Oprnd2> N Z C Rd:= 0xFFFFFFFF EOR <Oprnd2> SPSR to register MRS{cond} Rd, SPSR Rd:= SPSR Architecture 3, 3M and 4 only CPSR to register MRS{cond} Rd, CPSR Rd:= CPSR Architecture 3, 3M and 4 only register to SPSR MSR{cond} SPSR{field}, Rm SPSR:= Rm Architecture 3, 3M and 4 only register to CPSR MSR{cond} CPSR{field}, Rm CPSR:= Rm Architecture 3, 3M and 4 only immediate to SPSR flags MSR{cond} SPSR_f, #32_Bit_Immed SPSR:= #32_Bit_Immed Architecture 3, 3M and 4 only immediate to CPSR flags MSR{cond} CPSR_f, #32_Bit_Immed CPSR:= #32_Bit_Immed Architecture 3, 3M and 4 only ALU Arithmetic Add ADD{cond}{S} Rd, Rn, <Oprnd2> N Z C V Rd:= Rn + <Oprnd2> with carry ADC{cond}{S} Rd, Rn, <Oprnd2> N Z C V Rd:= Rn + <Oprnd2> + Carry Subtract SUB{cond}{S} Rd, Rn, <Oprnd2> N Z C V Rd:= Rn - <Oprnd2> with carry SBC{cond}{S} Rd, Rn, <Oprnd2> N Z C V Rd:= Rn - <Oprnd2> - NOT(Carry) reverse subtract RSB{cond}{S} Rd, Rn, <Oprnd2> N Z C V Rd:= <Oprnd2> - Rn reverse subtract with carry RSC{cond}{S} Rd, Rn, <Oprnd2> N Z C V Rd:= <Oprnd2> - Rn - NOT(Carry) Negate Multiply MUL{cond}{S} Rd, Rm, Rs N Z Rd:= Rm * Rs Not in Architecture 1 accumulate MLA{cond}{S} Rd, Rm, Rs, Rn N Z Rd:= (Rm * Rs) + Rn Not in Architecture 1 unsigned long UMULL{cond}{S} RdHi, RdLo, Rm, Rs N Z RdHi:= (Rm*Rs)[63:32] RdLo:= (Rm*Rs)[31:0] Architecture 3M and 4 only...
View Full Document

This document was uploaded on 10/30/2011 for the course CSE 378 380 at SUNY Buffalo.

Page1 / 3

ARM-Reference-Card - ARM Instruction Set Quick Reference...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online