mirror of
https://github.com/mre/mos6502.git
synced 2024-11-25 02:33:26 +00:00
Add EOR to execute_instruction().
This commit is contained in:
parent
fab7ff5cf0
commit
e4acd0575d
@ -220,6 +220,14 @@ impl Machine {
|
|||||||
self.dec_x();
|
self.dec_x();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(instruction::EOR, instruction::UseImmediate(val)) => {
|
||||||
|
self.exclusive_or(val);
|
||||||
|
}
|
||||||
|
(instruction::EOR, instruction::UseAddress(addr)) => {
|
||||||
|
let val = self.memory.get_byte(addr);
|
||||||
|
self.exclusive_or(val);
|
||||||
|
}
|
||||||
|
|
||||||
(instruction::INC, instruction::UseAddress(addr)) => {
|
(instruction::INC, instruction::UseAddress(addr)) => {
|
||||||
let m = self.memory.get_byte(addr);
|
let m = self.memory.get_byte(addr);
|
||||||
let m = m + 1;
|
let m = m + 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user