Skip to content
Snippets Groups Projects
Commit 6bdecc70 authored by anttib-5's avatar anttib-5
Browse files

bare1_4

parent 52d150e3
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,7 @@ fn main() -> ! {
loop {
_x += 1;
cortex_m::asm::nop();
//cortex_m::asm::bkpt();
cortex_m::asm::bkpt();
_x -= 1;
}
}
......@@ -139,7 +139,32 @@ fn main() -> ! {
// What is the output of:
// (gdb) disassemble
//
// ** your answer here **
// Dump of assembler code for function Reset:
// => 0x08000622 <+0>: bl 0x8000692 <DefaultPreInit>
// 0x08000626 <+4>: b.n 0x8000628 <Reset+6>
// 0x08000628 <+6>: movw r0, #0
// 0x0800062c <+10>: movt r0, #8192 ; 0x2000
// 0x08000630 <+14>: movw r1, #0
// 0x08000634 <+18>: movt r1, #8192 ; 0x2000
// 0x08000638 <+22>: bl 0x8000694 <r0::zero_bss>
// 0x0800063c <+26>: b.n 0x800063e <Reset+28>
// 0x0800063e <+28>: movw r0, #0
// 0x08000642 <+32>: movt r0, #8192 ; 0x2000
// 0x08000646 <+36>: movw r1, #0
// 0x0800064a <+40>: movt r1, #8192 ; 0x2000
// 0x0800064e <+44>: movw r2, #2580 ; 0xa14
// 0x08000652 <+48>: movt r2, #2048 ; 0x800
// 0x08000656 <+52>: bl 0x80006dc <r0::init_data>
// 0x0800065a <+56>: b.n 0x800065c <Reset+58>
// 0x0800065c <+58>: movw r0, #60808 ; 0xed88
// 0x08000660 <+62>: movt r0, #57344 ; 0xe000
// 0x08000664 <+66>: ldr r1, [r0, #0]
// 0x08000666 <+68>: orr.w r1, r1, #15728640 ; 0xf00000
// 0x0800066a <+72>: bl 0x8000756 <core::ptr::write_volatile>
// 0x0800066e <+76>: b.n 0x8000670 <Reset+78>
// 0x08000670 <+78>: bl 0x8000676 <ResetTrampoline>
// 0x08000674 <+82>: udf #254 ; 0xfe
// End of assembler dump.
//
// Commit your answers (bare1_4)
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment