mirror of
https://github.com/hazemKrimi/hack-assembler.git
synced 2026-05-01 18:20:28 +00:00
15 lines
246 B
Rust
15 lines
246 B
Rust
pub struct AInstruction {
|
|
pub decimal: String,
|
|
}
|
|
|
|
pub struct CInstruction {
|
|
pub dest: String,
|
|
pub comp: String,
|
|
pub jump: Option<String>,
|
|
}
|
|
|
|
pub enum Instruction {
|
|
AInstruction(AInstruction),
|
|
CInstruction(CInstruction),
|
|
}
|