mirror of
https://github.com/mnaberez/py65.git
synced 2024-11-19 06:31:08 +00:00
Minor cleanup, removed unused function.
This commit is contained in:
parent
114c81660b
commit
f128be6e5b
@ -15,7 +15,7 @@ class MPU:
|
||||
ZERO = 2
|
||||
CARRY = 1
|
||||
|
||||
def __init__(self, memory=None, pc=0):
|
||||
def __init__(self, memory=None, pc=0x0000):
|
||||
# config
|
||||
self.debug = False
|
||||
|
||||
@ -26,13 +26,12 @@ class MPU:
|
||||
self.processorCycles = 0
|
||||
self.internalCycleDelay = 0
|
||||
|
||||
if not memory:
|
||||
if memory is None:
|
||||
memory = 0xFFFF * [0x00]
|
||||
self.memory = memory
|
||||
self.start_pc = pc
|
||||
|
||||
# init
|
||||
#self.clearMemory()
|
||||
self.reset()
|
||||
|
||||
def __repr__(self):
|
||||
@ -62,11 +61,6 @@ class MPU:
|
||||
self.breakFlag = False
|
||||
self.processorCycles = 0
|
||||
|
||||
#def clearMemory(self, start=0x0000, end=0xFFFF):
|
||||
#self.memory = []
|
||||
#for addr in range(start, end + 1):
|
||||
#self.memory.insert(addr, 0x00)
|
||||
|
||||
def ByteAt(self, addr):
|
||||
return self.memory[addr]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user