Skip to content

Instantly share code, notes, and snippets.

@synic
Created October 2, 2014 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save synic/dc8df870bf422e888711 to your computer and use it in GitHub Desktop.
Save synic/dc8df870bf422e888711 to your computer and use it in GitHub Desktop.
0800029c <SetSysClock>:
800029c: b480 push {r7}
800029e: b083 sub sp, #12
80002a0: af00 add r7, sp, #0
80002a2: 2300 movs r3, #0
80002a4: 607b str r3, [r7, #4]
80002a6: 2300 movs r3, #0
80002a8: 603b str r3, [r7, #0]
80002aa: 4b21 ldr r3, [pc, #132] ; (8000330 <SetSysClock+0x94>)
80002ac: 2213 movs r2, #19
80002ae: 601a str r2, [r3, #0]
80002b0: 4b20 ldr r3, [pc, #128] ; (8000334 <SetSysClock+0x98>)
80002b2: 4a20 ldr r2, [pc, #128] ; (8000334 <SetSysClock+0x98>)
80002b4: 6852 ldr r2, [r2, #4]
80002b6: 605a str r2, [r3, #4]
80002b8: 4b1e ldr r3, [pc, #120] ; (8000334 <SetSysClock+0x98>)
80002ba: 4a1e ldr r2, [pc, #120] ; (8000334 <SetSysClock+0x98>)
80002bc: 6852 ldr r2, [r2, #4]
80002be: 605a str r2, [r3, #4]
80002c0: 4b1c ldr r3, [pc, #112] ; (8000334 <SetSysClock+0x98>)
80002c2: 4a1c ldr r2, [pc, #112] ; (8000334 <SetSysClock+0x98>)
80002c4: 6852 ldr r2, [r2, #4]
80002c6: f442 6280 orr.w r2, r2, #1024 ; 0x400
80002ca: 605a str r2, [r3, #4]
80002cc: 4b19 ldr r3, [pc, #100] ; (8000334 <SetSysClock+0x98>)
80002ce: 4a19 ldr r2, [pc, #100] ; (8000334 <SetSysClock+0x98>)
80002d0: 6852 ldr r2, [r2, #4]
80002d2: f422 127c bic.w r2, r2, #4128768 ; 0x3f0000
80002d6: 605a str r2, [r3, #4]
80002d8: 4b16 ldr r3, [pc, #88] ; (8000334 <SetSysClock+0x98>)
80002da: 4a16 ldr r2, [pc, #88] ; (8000334 <SetSysClock+0x98>)
80002dc: 6852 ldr r2, [r2, #4]
80002de: f442 1220 orr.w r2, r2, #2621440 ; 0x280000
80002e2: 605a str r2, [r3, #4]
80002e4: 4b13 ldr r3, [pc, #76] ; (8000334 <SetSysClock+0x98>)
80002e6: 4a13 ldr r2, [pc, #76] ; (8000334 <SetSysClock+0x98>)
80002e8: 6812 ldr r2, [r2, #0]
80002ea: f042 7280 orr.w r2, r2, #16777216 ; 0x1000000
80002ee: 601a str r2, [r3, #0]
80002f0: bf00 nop
80002f2: 4b10 ldr r3, [pc, #64] ; (8000334 <SetSysClock+0x98>)
80002f4: 681b ldr r3, [r3, #0]
80002f6: f003 7300 and.w r3, r3, #33554432 ; 0x2000000
80002fa: 2b00 cmp r3, #0
80002fc: d0f9 beq.n 80002f2 <SetSysClock+0x56>
80002fe: 4b0d ldr r3, [pc, #52] ; (8000334 <SetSysClock+0x98>)
8000300: 4a0c ldr r2, [pc, #48] ; (8000334 <SetSysClock+0x98>)
8000302: 6852 ldr r2, [r2, #4]
8000304: f022 0203 bic.w r2, r2, #3
8000308: 605a str r2, [r3, #4]
800030a: 4b0a ldr r3, [pc, #40] ; (8000334 <SetSysClock+0x98>)
800030c: 4a09 ldr r2, [pc, #36] ; (8000334 <SetSysClock+0x98>)
800030e: 6852 ldr r2, [r2, #4]
8000310: f042 0202 orr.w r2, r2, #2
8000314: 605a str r2, [r3, #4]
8000316: bf00 nop
8000318: 4b06 ldr r3, [pc, #24] ; (8000334 <SetSysClock+0x98>)
800031a: 685b ldr r3, [r3, #4]
800031c: f003 030c and.w r3, r3, #12
8000320: 2b08 cmp r3, #8
8000322: d1f9 bne.n 8000318 <SetSysClock+0x7c>
8000324: 370c adds r7, #12
8000326: 46bd mov sp, r7
8000328: f85d 7b04 ldr.w r7, [sp], #4
800032c: 4770 bx lr
800032e: bf00 nop
8000330: 40022000 .word 0x40022000
8000334: 40021000 .word 0x40021000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment