mirror of
https://github.com/mre/mos6502.git
synced 2025-02-19 16:32:10 +00:00
Add ORA to execute_instruction().
This commit is contained in:
parent
9c95ade3a3
commit
8698dc17f9
@ -291,6 +291,14 @@ impl Machine {
|
||||
&mut self.registers.status);
|
||||
}
|
||||
|
||||
(Instruction::ORA, OpInput::UseImmediate(val)) => {
|
||||
self.inclusive_or(val);
|
||||
}
|
||||
(Instruction::ORA, OpInput::UseAddress(addr)) => {
|
||||
let val = self.memory.get_byte(addr);
|
||||
self.inclusive_or(val);
|
||||
}
|
||||
|
||||
(Instruction::PHA, OpInput::UseImplied) => {
|
||||
// Push accumulator
|
||||
let val = self.registers.accumulator as u8;
|
||||
|
Loading…
x
Reference in New Issue
Block a user