From 353c7b03f1e79ec40af10ab3fa9a2f3562c74abb Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Sun, 15 Jan 2012 13:37:25 -0800 Subject: [PATCH] Document save command --- docs/index.rst | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index a6c901b..b407b81 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -226,7 +226,7 @@ Command Reference Unlike the VICE monitor, Py65Mon's ``load`` command does not expect the first two bytes to be a Commodore-style load address. It will start - reading the file at byte 0, not byte 2. + reading the data at byte 0, not byte 2. If the filename is a URL, it will be retrieved:: @@ -319,6 +319,26 @@ Command Reference .return +.. describe:: save + + Save the specified memory range to disk as a binary file:: + + .save hello.bin c000 c01c + Wrote +29 bytes from $c000 to $c01c + + The file will be saved relative to the current working directory. You + may also specify an absolute path. If the filename contains spaces, use + quotes around it:: + + .save "say hello.bin" c000 c01c + Wrote +29 bytes from $c000 to $c01c + + .. note:: + + Unlike the VICE monitor, Py65Mon's ``save`` command does not write + the first two bytes as a Commodore-style load address. It will start + writing the data at byte 0, not byte 2. + .. describe:: show_labels Display labels that have been defined with ``add_label``::