From 1724b54d059a87e3404ca48ab81ecb279b646a68 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Thu, 6 Aug 2009 15:30:16 -0700 Subject: [PATCH] Fixed signatures of getc/putc in monitor. Closes #1. --- CHANGES.txt | 5 +++++ src/py65/monitor.py | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index a880908..51bebcc 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,8 @@ +Next Release + + - Fixed signatures of getc/putc callbacks in monitor that were broken + when the ObservableMemory interface changed in 0.3. Closes #1. + 0.4 (2009-06-06) - Added ez_setup.py to bootstrap setuptools installation. diff --git a/src/py65/monitor.py b/src/py65/monitor.py index 758fef7..b22e270 100644 --- a/src/py65/monitor.py +++ b/src/py65/monitor.py @@ -86,11 +86,11 @@ class Monitor(cmd.Cmd): return line def _install_mpu_observers(self): - def putc(operation, address, value): + def putc(address, value): self.stdout.write(chr(value)) self.stdout.flush() - def getc(operation, address): + def getc(address): return getch(self.stdin) m = ObservableMemory()