1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-06-01 03:41:31 +00:00

Added ">" as a monitor shortcut for the fill command for consistency with VICE.

This commit is contained in:
Mike Naberezny 2009-11-25 18:26:29 -08:00
parent 6d998b117e
commit b1eb16d8fd
3 changed files with 13 additions and 1 deletions

View File

@ -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)

View File

@ -55,6 +55,7 @@ class Monitor(cmd.Cmd):
'd': 'disassemble',
'dl': 'delete_label',
'f': 'fill',
'>': 'fill',
'g': 'goto',
'l': 'load',
'm': 'mem',

View File

@ -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):