Академический Документы
Профессиональный Документы
Культура Документы
and Programming
Prof. Amogha B
Asst. Prof.
JIT, Davangere.
Why Assembler
• Most industrial microcontroller users program
in assembly language
• Many MC users will continue to program in
assembly they need the detailed control flow
• Many application require the efficiency of
assembly language
• Understanding the assembly helps in
evaluating high level language.
– A- abort
– I- interrupt
– T- Thumb state
C:\Users\Amogha\Desktop\Program+Status+Registers
.jpg
ADDW Rd, Rn, #immed ; Rd = Rn + ADD register with 12-bit immediate value
#immed
SXTH Rd, Rm ; Rd = signext(Rm[15:0]) Sign extend half word data into word
#define SYSTICK_CTRL
(*((volatile unsigned
long *) (0xE000E010)))
• Area
• Mov r0,#0
• R1,r2,r3,r4
• B uart0_initilization
• BL puts