Skip to content
Snippets Groups Projects
Commit 18a0350f authored by Henrik Tjäder's avatar Henrik Tjäder
Browse files

bare0_2

parent ef1563b4
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@
// Minimal runtime / startup for Cortex-M microcontrollers
extern crate cortex_m_rt;
const X_INIT: u32 = 10;
const X_INIT: u32 = 0xFFFF_FFFF;
static mut X: u32 = X_INIT;
static mut Y: u32 = 0;
......@@ -27,7 +27,6 @@ fn main() {
}
}
}
}
// 1. run the program in the debugger,
// let the program run for a while and then press pause
// look in the (Local -vscode) Variables view what do you find
......@@ -47,7 +46,7 @@ fn main() {
//
// 2. alter the constant X_INIT so that line 22 directly causes the x to wrap
// what happens when x wraps
// ** your answer here **
// Fail and go to exception handler in lib.rs
//
// commit your answers (bare0_2)
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment