fixed missing self

This commit is contained in:
James Tauber 2011-08-13 09:49:14 -04:00
parent f3e0cef441
commit 96ad7be994
1 changed files with 2 additions and 2 deletions

View File

@ -336,9 +336,9 @@ class Memory:
def write_byte(self, address, value):
if address < 0xC000:
self.ram.write_byte(address, value)
if 0x400 <= address < 0x800 and display:
if 0x400 <= address < 0x800 and self.display:
self.display.update(address, value)
if 0x2000 <= address < 0x5FFF and display:
if 0x2000 <= address < 0x5FFF and self.display:
self.display.update(address, value)