debug-1 - CSE 380 Debugging Debugging& Types of Errors ...

Info iconThis preview shows pages 1–3. 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 Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the 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

{[ snackBarMessage ]}

Page1 / 6

debug-1 - CSE 380 Debugging Debugging& Types of Errors ...

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

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