mirror of
https://github.com/mnaberez/py65.git
synced 2025-01-01 11:29:32 +00:00
Eliminate two function calls on every step
This commit is contained in:
parent
3d2490bcce
commit
3a0807ccec
@ -56,7 +56,7 @@ class MPU:
|
|||||||
self.pc, self.a, self.x, self.y, self.sp, flags)
|
self.pc, self.a, self.x, self.y, self.sp, flags)
|
||||||
|
|
||||||
def step(self):
|
def step(self):
|
||||||
instructCode = self.ImmediateByte()
|
instructCode = self.memory[self.pc]
|
||||||
self.pc = (self.pc + 1) & self.addrMask
|
self.pc = (self.pc + 1) & self.addrMask
|
||||||
self.excycles = 0
|
self.excycles = 0
|
||||||
self.addcycles = self.extracycles[instructCode]
|
self.addcycles = self.extracycles[instructCode]
|
||||||
|
Loading…
Reference in New Issue
Block a user