mirror of
https://github.com/hazemKrimi/hack-assembler.git
synced 2026-05-01 18:20:28 +00:00
9 lines
200 B
Rust
9 lines
200 B
Rust
pub fn decimal_to_binary(decimal: &i32) -> String {
|
|
String::from(format!("{decimal:015b}"))
|
|
}
|
|
|
|
// fn translate_dest(dest: &String) -> String {
|
|
// let cloned = dest.clone();
|
|
|
|
// cloned
|
|
// }
|