diff options
| author | Sophie Forrest <git@sophieforrest.com> | 2024-10-04 23:46:26 +1300 |
|---|---|---|
| committer | Sophie Forrest <git@sophieforrest.com> | 2024-10-04 23:46:26 +1300 |
| commit | 21d0fe6f99c81308fdb392ff8033f09dff90c46c (patch) | |
| tree | 3867f390759b6673aa1fb53933484d16620ccddc /src | |
| parent | 18e17a549ff44c8b79b439de565d69eba1d3307c (diff) | |
feat(instruction): add derives
Diffstat (limited to 'src')
| -rw-r--r-- | src/instruction.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/instruction.rs b/src/instruction.rs index d3aa725..4a23992 100644 --- a/src/instruction.rs +++ b/src/instruction.rs @@ -10,7 +10,7 @@ pub enum Instruction { } /// Addressing modes for MOS 6502. -#[derive(Clone, Copy, Debug)] +#[derive(Clone, Copy, Debug, Eq, PartialEq)] pub enum AddressingMode { /// Immediate mode Immediate, @@ -23,6 +23,7 @@ pub enum AddressingMode { } /// Operation retrieved from decoding an opcode. +#[derive(Clone, Copy, Debug, Eq, PartialEq)] pub struct Operation { /// [`AddressingMode`] pub addressing_mode: AddressingMode, |