This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: CSE 380 Debugging Debugging & Types of Errors Â¡ Syntax Â¢ Identified & fixed during compilation & assembly Â¡ Runtime Â¢ Identified & fixed using a debugger Hexadecimal Notation & ARM Assembly Â¡ When writing ARM assembly, & indicates a hexadecimal value & Debugger Â¡ When viewing register and memory values in AXD, 0x indicates a hexadecimal value A Few Instructions Reviewed & Move Instruction Â¡ Variations Â¢ MOV rd , #Immediate Â£ Move the immediate value into the destination register Â£ Immediate â€¢ Constant Â£ Decimal â€¢ Default â€¢ #Immediate Â£ Hexadecimal â€¢ # & Immediate Â¢ MOV rd , rm Â£ Move the contents stored in register rm into the destination register rd & Add Instruction Â¡ ADD rd , rn , rm Â¡ Add the contents of register rn to the contents of register rm , placing the result in the destination register rd . & Compare & Branch Â¡ Compare two values Â¢ Sets CPSR (Current Program Status Register) flags Â¡ Branch Conditionally Â¢ Based on two values compared Â£ The results of comparison reflected in CPSR & Compare Instruction Â¡ CMP rn , rm Â¡ Compare the two operands Â¡ Update CPSR based on the results of rn- rm indicating if the comparison resulted in a carry (C), overflow (V), negative (N), zero (Z) Â¢ These flags will be used for branching & Branch Instruction Â¡ Transfer control to instruction at...
View Full Document
- Spring '11
- Central processing unit, Control flow, ARM Assembly, AXD