From 3a0807ccec1130ff4e04666da2ef75d60f172af7 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Mon, 2 Jan 2012 15:16:25 -0800 Subject: [PATCH] Eliminate two function calls on every step --- src/py65/devices/mpu6502.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]