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.

*<br />

savepic<br />

Writes the cont<strong>en</strong>ts of the graphic scre<strong>en</strong> to the input-named picture file.<br />

?savepie "my_pie<br />

? s a v e pie "b: my _p i e<br />

NOTE - Before saving, insert a formatted disc with <strong>en</strong>ough free space for the file that<br />

you wish to save. Do not save files onto your master system disc; indeed you should<br />

NEVER ev<strong>en</strong> risk writing to it by closing its write-protect holes.<br />

If you are using the CP/M 2.2 version of Dr. LOGO (on Side 4 of your master package),<br />

you cannot change discs mid-session, so it is vital that your CP/M 2.2 Dr. LOGO<br />

working disc has pl<strong>en</strong>ty of free space for programs.<br />

*<br />

setd<br />

(set drive) Makes the specified drive the default drive.<br />

?defauLtd<br />

A:<br />

? d i r<br />

[BOXES CIRCLE STARS]<br />

?setd "b:<br />

?defauLtd<br />

B:<br />

? d i r<br />

[TRIANGLE HOUSE]<br />

I{eyboard and Joystick:<br />

buttonp<br />

(button pressed) Outputs T RUE if the button on the specified joystick is down;<br />

numbers 0 or 1 id<strong>en</strong>tify the two possible joysticks.<br />

?to fire<br />

>LabeL "Loop<br />

>if (buttonp 0) [pr [fire 0!]]<br />

>if (buttonp 1) [pr [fire 1!]]<br />

>90 "Loop<br />

><strong>en</strong>d<br />

The position of the joystick is tested by padd Le.<br />

Introduction to Logo Chapter 6 Page 35

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

Saved successfully!

Ooh no, something went wrong!