mirror of
https://github.com/hazemKrimi/hack-assembler.git
synced 2026-05-01 18:20:28 +00:00
Translate A instructions without symbols
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
pub fn decimal_to_binary(decimal: &i32) -> String {
|
||||
String::from(format!("{decimal:015b}"))
|
||||
}
|
||||
|
||||
// fn translate_dest(dest: &String) -> String {
|
||||
// let cloned = dest.clone();
|
||||
|
||||
// cloned
|
||||
// }
|
||||
Reference in New Issue
Block a user