mirror of
https://github.com/Noratrieb/rustv32i.git
synced 2026-01-14 13:25:01 +01:00
A
This commit is contained in:
parent
105706e862
commit
ca565ddeb3
5 changed files with 208 additions and 4 deletions
|
|
@ -98,6 +98,9 @@ fn input() -> u64 {
|
|||
fn _start() -> ! {
|
||||
let random_number = 45;
|
||||
|
||||
let num = core::sync::atomic::AtomicI32::new(0);
|
||||
num.swap(10, core::sync::atomic::Ordering::SeqCst);
|
||||
|
||||
loop {
|
||||
let n = input();
|
||||
if n == random_number {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue