mirror of
https://github.com/mnaberez/py65.git
synced 2024-06-10 02:29:29 +00:00
break pushes correct pc
This commit is contained in:
parent
b710c742ac
commit
e9f2c9398d
|
@ -528,7 +528,7 @@ class MPU:
|
|||
@instruction(name="BRK", mode="imp", cycles=7)
|
||||
def inst_0x00(self):
|
||||
# pc has already been increased one
|
||||
pc = (self.pc + 1) & self.addrMask
|
||||
pc = (self.pc) & self.addrMask
|
||||
self.stPushWord(pc)
|
||||
|
||||
self.p |= self.BREAK
|
||||
|
|
|
@ -68,7 +68,7 @@ class MPU(mpu6502.MPU):
|
|||
@instruction(name="BRK", mode="imp", cycles=7)
|
||||
def inst_0x00(self):
|
||||
# pc has already been increased one
|
||||
pc = (self.pc + 1) & self.addrMask
|
||||
pc = (self.pc) & self.addrMask
|
||||
self.stPushWord(pc)
|
||||
|
||||
self.p |= self.BREAK
|
||||
|
|
Loading…
Reference in New Issue
Block a user