mirror of
https://github.com/mre/mos6502.git
synced 2024-12-01 11:51:51 +00:00
Add BVC to execute_instruction().
This commit is contained in:
parent
8b3c9f8ad2
commit
b050ac7d04
@ -163,6 +163,12 @@ impl Machine {
|
||||
self.branch_if_positive(addr);
|
||||
}
|
||||
|
||||
(instruction::BVC, instruction::UseRelative(rel)) => {
|
||||
let addr = self.registers.program_counter
|
||||
+ AddressDiff(rel as i32);
|
||||
self.branch_if_overflow_clear(addr);
|
||||
}
|
||||
|
||||
(instruction::CLC, instruction::UseImplied) => {
|
||||
self.registers.status.and(!PS_CARRY);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user