[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interesting one-line BASIC program





On 3/29/08 7:13 AM, in article
39c98278-1081-4575-8c45-ff74a02c07a0@i7g2000prf.googlegroups.com, "Jake
Featherston" <Jake_Featherston@comcast.net> wrote:

>>> 10 A=INT(RND(1)*65535)+1:B=INT(RND(1)*256):POKE A,B:GOTO 10
>> 
>>> Just sit back and watch the chaos....
> 
> 
>> just as fun as:
>> 
>> 10 for i = 0 to 65535
>> 20 poke i,0
>> 30 next i
> 
> 
> That wouldn't work; you'd get an error  on the 257th repetition of the
> i loop, when it attempted to Poke 256,256

Why would it attempt a Poke 256,256? It is poking 0 into all memory
locations.