Skip to content

Commit

Permalink
Fixed documentation for SAVE with no file name
Browse files Browse the repository at this point in the history
  • Loading branch information
mungre committed Feb 21, 2024
1 parent 92fff61 commit 33d228b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ Puts a 'guard' on the specified address which will cause an error if you attempt
Clears all guards between the `<start>` and `<end`> addresses specified. This can also be used to reset a section of memory which has had code assembled in it previously. BeebAsm will complain if you attempt to assemble code over previously assembled code at the same address without having `CLEAR`ed it first.


`SAVE ["filename"], start, end [, exec [, reload] ]`
`SAVE ["filename",] start, end [, exec [, reload] ]`

Saves out object code to either a DFS disc image (if one has been specified), or to the current directory as a standalone file. The filename is optional only if a name is specified with `-o` on the command line. A source file must have at least one SAVE statement in it, otherwise nothing will be output. BeebAsm will warn if this is the case.

Expand Down
2 changes: 1 addition & 1 deletion src/commands.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ void LineParser::HandleAssert()
/*************************************************************************************************/
void LineParser::HandleSave()
{
// syntax is SAVE ["filename"], start, end [, exec [, reload] ]
// syntax is SAVE ["filename",] start, end [, exec [, reload] ]

ArgListParser args(*this);

Expand Down

0 comments on commit 33d228b

Please sign in to comment.