20.02.2013 Views

ZX Computings - OpenLibra

ZX Computings - OpenLibra

ZX Computings - OpenLibra

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Etchasketch<br />

This very short program allows<br />

you to use the keys "5", "6",<br />

"7" and "8" to move the PLOT<br />

blob around the screen, drawing<br />

pictures of your choice.<br />

Once you've got it running, try<br />

and modify it to (a) give you a<br />

choice of starting position;<br />

and/or (b> 'turn off' the blob<br />

from time to time tomove it to a<br />

new position on the screen<br />

without leaving a trail.<br />

10 LET FI=URL "1"<br />

20 LET B<br />

30 LET fi$=INKEY$<br />

4-0 IF = THEN GOTO 30<br />

60 LET (fl$="7")-<br />

70 LET B=B + (P$ = "8")<br />

80 PLOT<br />

100 GOTO 30<br />

Keep this handy reference guide to aid you when programming your <strong>ZX</strong>81<br />

Symbol Code How obtained<br />

0 • or •<br />

SPACE<br />

1 0<br />

shifted 1<br />

2 0<br />

shifted 2<br />

3 0<br />

shifted 7<br />

4 0<br />

shifted 4<br />

5 0<br />

shifted 5<br />

6 0<br />

shifted T<br />

7 0<br />

shifted E<br />

R=5H<br />

••••••••<br />

m 10<br />

8<br />

128<br />

129<br />

130<br />

131<br />

132<br />

0<br />

shifted A<br />

0<br />

shifted D<br />

0<br />

0<br />

shifted S<br />

SPACE<br />

0<br />

shifted Q<br />

0<br />

shifted W<br />

0<br />

shifted 6<br />

shifted 0 R<br />

O<br />

H 133<br />

Symbol Code How obtained<br />

0<br />

shifted 8<br />

134 0<br />

shifted Y<br />

135 0<br />

shifted 3<br />

136 0<br />

shifted H<br />

137 0<br />

shifted G<br />

138 0<br />

shifted F<br />

91

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

Saved successfully!

Ooh no, something went wrong!