1
0
mirror of https://github.com/mre/mos6502.git synced 2024-12-22 12:29:31 +00:00

Add BCC to execute_instruction.

This commit is contained in:
Andrew Keeton 2014-11-06 19:35:07 -05:00
parent be7539d6c9
commit 7a4515b375

View File

@ -110,6 +110,13 @@ impl Machine {
&mut self.registers.status);
}
(instruction::BCC, instruction::UseRelative(rel)) => {
let addr = self.registers.program_counter
+ AddressDiff(rel as i32);
self.branch_if_carry_clear(addr);
}
(instruction::BIT, instruction::UseAddress(addr)) => {
let a: u8 = self.registers.accumulator as u8;
let m: u8 = self.memory.get_byte(addr);