Warning

You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revisionBoth sides next revision
save [2019/05/07 22:01] – created neilssave [2019/05/07 22:05] neils
Line 1: Line 1:
 ====== SAVE ====== ====== SAVE ======
  
 +Syntax:
 +
 +  save "filename", <byte or int device_no>, <int start_address>, <int end_address>
 +
 +The ''SAVE'' command saves the given memory area into a file on the given device by calling the KERNAL SAVE routine. The first two bytes in the file will contain the start address.
 +
 +**Note**: The last byte written in the file will be ''end_address - 1''.
 +
 +**Tip**: Prepend the file name with ''@0''` to overwrite an existing file on disk. Example:
 +
 +  save "@0:existingfile", 8, 49152, 49408
 +
 +Use the ''[[FERR|FERR()]]'' function to get error information on the saving process.