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:
parent
be7539d6c9
commit
7a4515b375
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user