mirror of
https://github.com/mre/mos6502.git
synced 2025-02-26 18:29:14 +00:00
Add BVC to execute_instruction().
This commit is contained in:
parent
7e0a086a1d
commit
448fc3f061
@ -169,6 +169,12 @@ impl Machine {
|
|||||||
self.branch_if_overflow_clear(addr);
|
self.branch_if_overflow_clear(addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(instruction::BVS, instruction::UseRelative(rel)) => {
|
||||||
|
let addr = self.registers.program_counter
|
||||||
|
+ AddressDiff(rel as i32);
|
||||||
|
self.branch_if_overflow_set(addr);
|
||||||
|
}
|
||||||
|
|
||||||
(instruction::CLC, instruction::UseImplied) => {
|
(instruction::CLC, instruction::UseImplied) => {
|
||||||
self.registers.status.and(!PS_CARRY);
|
self.registers.status.and(!PS_CARRY);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user