diff --git a/src/py65/devices/mpu6502.py b/src/py65/devices/mpu6502.py index a725726..4fd797f 100644 --- a/src/py65/devices/mpu6502.py +++ b/src/py65/devices/mpu6502.py @@ -56,7 +56,7 @@ class MPU: self.pc, self.a, self.x, self.y, self.sp, flags) def step(self): - instructCode = self.ImmediateByte() + instructCode = self.memory[self.pc] self.pc = (self.pc + 1) & self.addrMask self.excycles = 0 self.addcycles = self.extracycles[instructCode]