mirror of
https://github.com/jtauber/applepy.git
synced 2024-11-26 16:49:32 +00:00
fix dump() function so it works (when uncommented)
This commit is contained in:
parent
dde4a83f85
commit
1925846c3c
@ -251,7 +251,7 @@ class CPU:
|
||||
def reset(self):
|
||||
self.program_counter = self.memory.read_word(self.RESET_VECTOR)
|
||||
|
||||
def dump(self, win):
|
||||
def dump(self, win, op):
|
||||
win.addstr(10, 50, "%04X got %02X" % (self.program_counter - 1, op))
|
||||
win.addstr(14, 50, "BUFFER:" +
|
||||
" ".join("%02X" % self.memory.read_byte(m) for m in range(0x200, 0x210))
|
||||
@ -280,7 +280,7 @@ class CPU:
|
||||
win.nodelay(True)
|
||||
while True:
|
||||
op = self.read_pc_byte()
|
||||
# self.dump(win)
|
||||
# self.dump(win, op)
|
||||
func = self.ops[op]
|
||||
if func is None:
|
||||
curses.endwin()
|
||||
|
Loading…
Reference in New Issue
Block a user