From b1eb16d8fd31c2ab9b8be47c62d8b4218ee8ddd8 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Wed, 25 Nov 2009 18:26:29 -0800 Subject: [PATCH] Added ">" as a monitor shortcut for the fill command for consistency with VICE. --- CHANGES.txt | 3 +++ src/py65/monitor.py | 1 + src/py65/tests/test_monitor.py | 10 +++++++++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 657d075..8a1b99c 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -10,6 +10,9 @@ - Applied patch by Ed Spittles that fixes the behavior of the BREAK and UNUSED flags in the processor status register. Closes #16. + + - Added ">" as a monitor shortcut for the fill command for + consistency with VICE. 0.7 (2009-09-03) diff --git a/src/py65/monitor.py b/src/py65/monitor.py index cfdedd6..bb37caf 100644 --- a/src/py65/monitor.py +++ b/src/py65/monitor.py @@ -55,6 +55,7 @@ class Monitor(cmd.Cmd): 'd': 'disassemble', 'dl': 'delete_label', 'f': 'fill', + '>': 'fill', 'g': 'goto', 'l': 'load', 'm': 'mem', diff --git a/src/py65/tests/test_monitor.py b/src/py65/tests/test_monitor.py index 13b5b89..761f3e4 100644 --- a/src/py65/tests/test_monitor.py +++ b/src/py65/tests/test_monitor.py @@ -184,7 +184,7 @@ class MonitorTests(unittest.TestCase): # fill - def test_shortcut_for_fill(self): + def test_shortcut_f_for_fill(self): stdout = StringIO() mon = Monitor(stdout=stdout) mon.do_help('f') @@ -192,6 +192,14 @@ class MonitorTests(unittest.TestCase): out = stdout.getvalue() self.assertTrue(out.startswith('fill')) + def test_shortcut_gt_for_fill(self): + stdout = StringIO() + mon = Monitor(stdout=stdout) + mon.do_help('>') + + out = stdout.getvalue() + self.assertTrue(out.startswith('fill')) + # goto def test_shortcut_for_goto(self):