17.01.2013 Views

AmstradCPC6128-hypertext-en-Sinewalker

AmstradCPC6128-hypertext-en-Sinewalker

AmstradCPC6128-hypertext-en-Sinewalker

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

If you have selected the For m a t A : option (key f8), you MUST th<strong>en</strong> remember to<br />

remove your system disc from Drive A, and instead insert the disc to be forma tted.<br />

Don't forget - NEVER RISK OVERWRITING YOUR MASTER CP/M SYSTEM<br />

DISCS.<br />

Now that we have a formatted blank disc (or two), we can start to manipulate BASIC<br />

programs to and from disc.<br />

Saving a Program in Memory onto Disc<br />

Having typed a program into the computer's memory, save it onto disc by typing in:<br />

s a v e "f; Le n a me" [RETURN]<br />

Note that the naming of the program is obligatory.<br />

A fil<strong>en</strong>ame on disc consists of 2 parts (fields). The first part is obligatory and can<br />

contain up to 8 characters. Letters and numbers may be used but NO spaces or<br />

punctuation marks. This first field usually contains the name of the program.<br />

The second field-is optional. You can use up to 3 characters, but again no spaces or<br />

punctuation. The 2 fields are separated by a dot.<br />

If you do not specify a second field, the system will automatically label it with a tok<strong>en</strong><br />

of its own, such as . BA S for BASIC files or • BIN for binary (machine code) files.<br />

As an example of saving to disc, write a short program into the memory, insert a<br />

formatted disc, th<strong>en</strong> type in:<br />

- save" e x amp Le" [RETURNr<br />

After a few seconds, the prompt Rea d y will appear on the scre<strong>en</strong>, and the program<br />

will have be<strong>en</strong> saved onto disc. (If not, check any error message on the scre<strong>en</strong> to<br />

establish whether you either forgot to insert your disc into the correct drive, forgot to<br />

close the write protect hole, or mistyped the command.)<br />

Catalog<br />

After saving the above program, type in:<br />

cat [RETURN]<br />

Foundation Course Chapter 1 Page 43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!