I{Eyboard And Joystick; Savepic; Setd; Buttonp - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

*
savepic
Writes the contents of the graphic screen to the input-named picture file.
?savepie "my_pie
? s a v e pie "b: my _p
i
e
NOTE - Before saving, insert a formatted disc with enough free space for the file that
you wish to save. Do not save files onto your master system disc; indeed you should
NEVER even risk writing to it by closing its write-protect holes.
If you are using the
CP/M
2.2 version of Dr. LOGO (on Side 4 of your master package),
you cannot change discs mid-session, so it is vital that your
CP/M
2.2 Dr. LOGO
working disc has plenty of free space for programs.
*
setd
(set drive) Makes the specified drive the default drive.
?defauLtd
A:
? d
i
r
[BOXES CIRCLE STARS]
?setd "b:
?defauLtd
B:
?
d i r
[TRIANGLE HOUSE]
I{eyboard and Joystick:
buttonp
(button pressed) Outputs T RUE if the button on the specified joystick is down;
numbers 0 or 1 identify the two possible joysticks.
?to fire
>LabeL "Loop
>if (buttonp 0) [pr [fire 0!]]
>if (buttonp
1)
[pr [fire 1!]]
>90 "Loop
>end
The position of the joystick is tested by padd
Le.
Introduction to Logo
Chapter 6 Page 35

Advertisement

Table of Contents
loading

Table of Contents