COMP2300/6300
Computer Organisation & Program Execution Dr Uwe Zimmer Dr Charles Martin Semester 1, 2019
1
COMP2300/6300 Computer Organisation & Program Execution Dr Uwe - - PowerPoint PPT Presentation
COMP2300/6300 Computer Organisation & Program Execution Dr Uwe Zimmer Dr Charles Martin Semester 1, 2019 1 Dr Charles P Martin Thats me! Just started at ANU in mid-semester break. PhD (computer science) at ANU in 2016 PostDoc at
1
2
3
4
5
6
7
8
g_pfnVectors: .word _estack .word Reset_Handler .word NMI_Handler .word HardFault_Handler .word MemManage_Handler ...
9
.global EXTI0_IRQHandler .type EXTI0_IRQHandler, %function EXTI0_IRQHandler: @ do something! bx lr .size EXTI0_IRQHandler, .-EXTI0_IRQHandler
10
11
12
13
14
15
16
ldrex loads r1 with the memory that r0 is pointing to, and sets that memory
ldr r0, =label_in_data_section ldrex r1, [r0]
17
strex tries to store r1 in the memory that r0 is pointing to, but checks the
ldr r0, =label_in_data_section mov r1, 5 strex r2, r1, [r0] cmp r2, 0 bne do_something_to_recover
18
19
clrex!
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35