1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-10-16 01:23:45 +00:00

Eliminate two function calls on every step

This commit is contained in:
Mike Naberezny 2012-01-02 15:16:25 -08:00
parent 3d2490bcce
commit 3a0807ccec

View File

@ -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]