SAVE CODE

BASin

SAVE CODE

Statement/Command

SAVE CODE sends a section of information in the memory to a file. The information can then be placed back in the memory using LOAD CODE.

How to use SAVE CODE

SAVE CODE may be used as a direct command or to form a statement in a program. SAVE is followed by a filename which is a string value, and then followed by CODE which is in turn followed by two numeric values separated by a comma, for example

SAVE "picture" CODE 16384,6912

The filename following SAVE may contain up to ten characters. The two values following CODE are each rounded down to the nearest integer if necessary. The first then gives the starting address (16384 above) of the information in the memory, and the second value (6912) gives the number of bytes that are to be sent to the file in the same way as a program, using SAVE.

The information saved by the above command is the screen display area.

Format

  • SAVE string-expr CODE int-num=expr,int-num-expr

See also

Chapter 20.