home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magic Disk 64
/
Magic_Disk_64_89-11_1989_-_de_Side_B.d64
/
sp.joystick
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
735b
|
19 lines
0 plot = 49152 : line = pl+3 : clear = pl+6 : recht = pl+9
1 setup = pl+12 : show = pl+15 : mem = pl+18 : ellipse = pl+21
2 test = pl+24 : invert = pl+27 : speich = pl+30 : left = pl+33
3 right = pl+36 : hard = pl+39 : up = pl+42 : down = pl+45
4 write = pl+48 : zmem = pl+51 : copy = pl+54 : w2 = pl+57
5 ssetup = pl+60 : charset = pl+63 : laden = pl+66
10 sys mem,32,32:sys cl
20 sys sh,0,0,0,1,0
30 sys re,0,0,95,41,1
40 j=56323:j1=56321:x=100:y=100
50 pokej,peek(j)and224
60 w=peek(j1)
70 if (w and1)=0theny=y-1:ify<0theny=255
80 if (w and2)=0theny=y+1:ify>255theny=0
90 if (w and4)=0thenx=x-1:ifx<0thenx=320
100 if (w and8)=0thenx=x+1:ifx>320thenx=0
105 if (w and16)=0thensys in
110 sys se,x,y:goto60