1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-11-19 06:31:08 +00:00

Merge branch 'master' of git@github.com:mnaberez/py65

This commit is contained in:
Mike Naberezny 2009-04-04 19:38:12 -07:00
commit 354117fef1

View File

@ -85,12 +85,12 @@ class Monitor(cmd.Cmd):
self.stdout.write(chr(value))
self.stdout.flush()
def getc(operation, address, value):
def getc(operation, address):
return getch(self.stdin)
m = ObservableMemory()
m.subscribe(m.WRITE, [0xF001], putc)
m.subscribe(m.READ, [0xF004], getc)
m.register_listener([0xF001], putc)
m.register_provider([0xF004], getc)
self._mpu.memory = m