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:
parent
65389218f4
commit
ca04dad8cb
@ -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 == '':
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user