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:
+13
-9
@@ -1,10 +1,14 @@
|
||||
pub struct AInstruction {
|
||||
pub decimal: String,
|
||||
}
|
||||
|
||||
pub struct CInstruction {
|
||||
pub dest: String,
|
||||
pub comp: String,
|
||||
pub jump: Option<String>,
|
||||
}
|
||||
|
||||
pub enum Instruction {
|
||||
AInstruction {
|
||||
decimal: String
|
||||
},
|
||||
CInstruction {
|
||||
dest: String,
|
||||
comp: String,
|
||||
jump: String
|
||||
}
|
||||
}
|
||||
AInstruction(AInstruction),
|
||||
CInstruction(CInstruction),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user