pub enum Operation {
Show 58 variants
ADC,
AND,
ASL,
BCC,
BCS,
BEQ,
BIT,
BMI,
BNE,
BPL,
BRK,
BVC,
BVS,
CLD,
CLI,
CLV,
CMP,
CPX,
CPY,
DEC,
DEX,
DEY,
EOR,
INC,
INX,
INY,
LDX,
LSR,
NOP,
ORA,
PHA,
PHP,
PLA,
PLP,
ROL,
ROR,
RTI,
SBC,
SED,
SEI,
STX,
STY,
TAX,
TAY,
TSX,
TXA,
TXS,
TYA,
LDA,
LDY,
STA,
JMP,
JSR,
SEC,
CLC,
RTS,
Raw(Vec<u8>),
Label(String),
}
Expand description
Enumeration containing all operations.
Variants§
ADC
Add Memory to Accumulator with Carry
AND
AND Memory with Accumulator
ASL
Shift Left One Bit (Memory or Accumulator)
BCC
Branch on carry clear
BCS
Branch on Carry Set
BEQ
BIT
BMI
BNE
BPL
BRK
BVC
BVS
CLD
CLI
CLV
CMP
CPX
CPY
DEC
DEX
DEY
EOR
INC
INX
INY
LDX
LSR
NOP
ORA
PHA
PHP
PLA
PLP
ROL
ROR
RTI
SBC
SED
SEI
STX
STY
TAX
TAY
TSX
TXA
TXS
TYA
LDA
Load accumulator
LDY
STA
Store accumulator
JMP
Jump
JSR
Jump sub-routine
SEC
Set carrier flag
CLC
Clear carrier flag
RTS
Return (from stack)
Raw(Vec<u8>)
Store a byte in the instruction stream. Only immediate addressing mode can be used.
Label(String)
Label
Implementations§
Source§impl Operation
impl Operation
Sourcepub fn definition(&self) -> Option<&'static InstructionDef>
pub fn definition(&self) -> Option<&'static InstructionDef>
Get the instruction definition of the operation.
Trait Implementations§
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more