diff --git a/py65/devices/mpu6502.py b/py65/devices/mpu6502.py index a2429f6..d72973e 100644 --- a/py65/devices/mpu6502.py +++ b/py65/devices/mpu6502.py @@ -4,15 +4,15 @@ from py65.utils.devices import make_instruction_decorator class MPU: # vectors - ResetTo = 0xfffc - IrqTo = 0xfffe - NMITo = 0xfffa + RESET = 0xfffc + NMI = 0xfffa + IRQ = 0xfffe # processor flags NEGATIVE = 128 OVERFLOW = 64 UNUSED = 32 - BREAK = 16 # there is no actual BREAK flag but this indicates BREAK + BREAK = 16 DECIMAL = 8 INTERRUPT = 4 ZERO = 2 @@ -511,7 +511,7 @@ class MPU: self.stPush(self.p | self.BREAK | self.UNUSED) self.p |= self.INTERRUPT - self.pc = self.WordAt(self.IrqTo) + self.pc = self.WordAt(self.IRQ) @instruction(name="ORA", mode="inx", cycles=6) def inst_0x01(self): diff --git a/py65/devices/mpu65c02.py b/py65/devices/mpu65c02.py index c56f7b5..7d685d9 100644 --- a/py65/devices/mpu65c02.py +++ b/py65/devices/mpu65c02.py @@ -75,7 +75,7 @@ class MPU(mpu6502.MPU): self.stPush(self.p | self.BREAK | self.UNUSED) self.p |= self.INTERRUPT - self.pc = self.WordAt(self.IrqTo) + self.pc = self.WordAt(self.IRQ) # 65C02 clears decimal flag, NMOS 6502 does not self.p &= ~self.DECIMAL