From 75670b9de9f5dc32692e8eb6fffdc96d7ce37fda Mon Sep 17 00:00:00 2001 From: Rhinemann Date: Mon, 26 Jun 2023 00:47:01 +0300 Subject: [PATCH] println! playing. --- src/main.rs | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9c46024..9dedd90 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,18 +10,19 @@ fn main() { println!("\nRegister:"); println!("{}", reg); + println!("{:b}", reg); - println!("\nShifted right:"); - reg.r_shift(); - println!("{}", reg); - - println!("\nShifted left:"); - reg.l_shift(); - println!("{}", reg); - - println!("\nReversed:"); - reg.reverse(); - println!("{}", reg); + // println!("\nShifted right:"); + // reg.r_shift(); + // println!("{}", reg); + // + // println!("\nShifted left:"); + // reg.l_shift(); + // println!("{}", reg); + // + // println!("\nReversed:"); + // reg.reverse(); + // println!("{}", reg); // println!("{}", true); // println!("{}", true);