home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 14
/
014.d81
/
sine.bas
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
633b
|
22 lines
1 rem sine.bas
5 print"[147]"spc(11)"[194][193][211][201][195][160][211][201][206][197][160][215][193][214][197]"
6 print""spc(9)"[208]ress a key to begin.":poke198,0:wait198,1:poke198,0
7 print"[147] [215]hile the graph is plotting, press any"
8 printspc(12)"key to exit.":fordl=1to3000:nextdl
9 :
10 poke53265,peek(53265)or32
20 poke53272,peek(53272)or8
30 forc=8192to16191
40 pokec,0:next
50 forc=1024to2023
60 pokec,3:next
70 forx=0to319:y=int(90+80*sin(x/10))
75 ifpeek(197)<>64then100
80 l=8192+int(y/8)*320+int(x/8)*8+(yand7):pokel,peek(l)or2^(7-(xand7)):next
90 poke198,0:wait198,1:getk$
100 poke53265,peek(53265)and223
110 poke53272,21
120 print"[147][204]oading [208][204][207][212][212][197][210] [205][197][206][213]..."
125 print"[144]load"chr$(34)"plotter boot" chr$(34)",8":print"run"
130 poke631,13:poke632,13:poke198,2:end