From a0ef706a55fbd3ca72bf911f7469b7baba543d5d Mon Sep 17 00:00:00 2001 From: James Tauber Date: Tue, 16 Aug 2011 20:03:06 -0400 Subject: [PATCH] renamed SoftSwitches to IO as it's about to do more --- applepy.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/applepy.py b/applepy.py index 5052474..e3cdb20 100644 --- a/applepy.py +++ b/applepy.py @@ -309,7 +309,7 @@ class Cassette: return ord(self.raw[offset]) if offset < len(self.raw) else 0x80 -class SoftSwitches: +class IO: def __init__(self, display, speaker, cassette): self.kbd = 0x00 @@ -346,7 +346,7 @@ class SoftSwitches: if self.cassette: return self.cassette.read_byte(cycle) else: - pass # print "%04X" % address + print "%04X" % address return 0x00 @@ -355,7 +355,7 @@ class Apple2: def __init__(self, options, display, speaker, cassette): self.display = display self.speaker = speaker - self.softswitches = SoftSwitches(display, speaker, cassette) + self.io = IO(display, speaker, cassette) args = [ sys.executable, @@ -379,7 +379,7 @@ class Apple2: op = self.core.stdout.read(8) cycle, rw, addr, val = struct.unpack("= 1024: