1
0
mirror of https://github.com/mre/mos6502.git synced 2024-11-28 07:49:19 +00:00

Add EOR to execute_instruction().

This commit is contained in:
Andrew Keeton 2014-11-16 21:14:23 -05:00
parent fab7ff5cf0
commit e4acd0575d

View File

@ -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;