Tandy 1000 Basic Reference Manual page 106

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter
10 I
BASIC Keywords
BSAVE
Statement
%SAVE pathname,offset,length
Saves the contents of an area of memory as a disk file.
Pathname
is a standard file specification as defined in Chapter
1.
Offset
is an integer in the range 0 to 65535.
Offset
is the num-
ber of bytes into the current segment where BASIC starts sav-
ing.
Length
is an integer in the range 1 to 65535. This is the length
in bytes of the memory image file to be saved.
You must specify
pathname, offset,
and length. If you omit any of
them, BASIC returns an error and terminates the save.
A memory image file is a byte-for-byte copy of what is in mem-
ory. The BSAVE statement lets you save data or programs as
memory image files on disk. BSAVE is often used for saving as-
sembly language programs, but you can also use it to save data,
programs written in other languages, or screen images.
When you load BASIC, the data segment (DS) register is set to
the address of BASIC's workspace. You must execute a DEF
SEG
statement before executing BSAVE, unless you used the
/M:
switch when you loaded BASIC. Without the DEF SEG state-
ment or the
/M:
switch, BASIC's workspace could be destroyed.
Sample Program
See BLOAD.
104

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents