Skip to content

Commit 7ffb243

Browse files
committed
fix(*) Compile error and broken example.
1 parent cde2738 commit 7ffb243

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

examples/counter.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ fn main() {
2727
];
2828

2929
// dbg!(Instruction::decode(0b1000_1000_1000_1000_0001_1000_0000010));
30-
dbg!(Instruction::decode(0b11_111_110_100_110_101_0011_000_0100001));
30+
dbg!(Instruction::decode(0b11_111_110_100_110_101_000_00000_0100001));
3131
}

src/instruction/encoding.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ impl Instruction {
174174
Format::Branch => todo!(),
175175
Format::DualSource(operation) => todo!(),
176176
Format::Destination(operation) => todo!(),
177-
Format::DestinationSource(operation) => todo!(),
177+
Format::DestinationSource(operation) => todo!(),
178178
Format::DestinationDualSource(operation) => todo!(),
179179
Format::DestinationTripleSource(operation) => todo!(),
180180
Format::DualDestinationDualSource(operation) => todo!(),

src/instruction/operation.rs

-5
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ pub enum DualSource {
1111

1212
impl DualSource {
1313
pub const MAPPINGS: [(Code, DualSource); 1] = [(Code::new(0), Self::Compare)];
14-
15-
pub fn from_code(code: Code) -> Self {
16-
17-
}
1814
}
1915

2016
#[derive(Debug, Clone, Copy, PartialEq, Default)]
@@ -207,5 +203,4 @@ pub const MAPPINGS: [Entry; 46] = [
207203
Entry { format: Format::DestinationMemory(DestinationMemory::CopyRegisterWordToMemory), name: "copy_register_word_to_memory" },
208204
Entry { format: Format::DestinationMemory(DestinationMemory::CopyRegisterDwordToMemory), name: "copy_register_dword_to_memory" },
209205
Entry { format: Format::DestinationMemory(DestinationMemory::CopyRegisterQwordToMemory), name: "copy_register_qword_to_memory" }
210-
211206
];

0 commit comments

Comments
 (0)