1
0
mirror of https://github.com/mnaberez/py65.git synced 2024-11-18 15:06:35 +00:00

Document interactive assembly from the program counter

This commit is contained in:
Mike Naberezny 2012-11-25 10:42:29 -08:00
parent 65389218f4
commit ca04dad8cb
2 changed files with 6 additions and 4 deletions

View File

@ -297,10 +297,12 @@ class Monitor(cmd.Cmd):
self._output("Syntax error: %s" % statement)
def help_assemble(self):
self._output("assemble <address> <statement>\t"
"Assemble a statement at the address.")
self._output("assemble\t\t"
"Start interactive assembly at the program counter.")
self._output("assemble <address>\t\t"
"Start interactive assembly at the address.")
self._output("assemble <address> <statement>\t"
"Assemble a statement at the address.")
def _interactive_assemble(self, args):
if args == '':

View File

@ -155,7 +155,7 @@ class MonitorTests(unittest.TestCase):
mon.help_assemble()
out = stdout.getvalue()
self.assertTrue(out.startswith("assemble <address>"))
self.assertTrue("assemble <address>" in out)
# cd
@ -419,7 +419,7 @@ class MonitorTests(unittest.TestCase):
mon = Monitor(stdout=stdout)
mon.onecmd('help assemble')
out = stdout.getvalue()
self.assertTrue(out.startswith("assemble <address>"))
self.assertTrue("assemble <address>" in out)
stdout.truncate(0)
mon.onecmd('h a')