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

Re: Interesting one-line BASIC program



On 2008-03-26 23:44:43 +1100, Jake Featherston <Jake_Featherston@comcast.net> said:

I came up with this in 1984 or '85.  Its a lot of fun.  Sometimes not
much happens, but occasionally you get some really peculiar and
unexpected results.  Here it is:

10 A=INT(RND(1)*65535)+1:B=INT(RND(1)*256):POKE A,B:GOTO 10

Just sit back and watch the chaos....

And how is this program at all interesting?!

For the uninitiated (AppleSoft BASIC programmer), this one-line program
tells the computer to write bytes all over the entire 64K of address
space in your computer.  It gives no regard to reserved memory areas
vital for system operation, including I/O space that is mapped to
controller cards attached to your machine.

Best that you don't run this program short of triggering some hardware-related
event you'll later regret!


--tonza