POV-Ray : Newsgroups : povray.off-topic : I'm in the mood for monads : Re: Living in a box Server Time
29 Jul 2024 10:20:52 EDT (-0400)
  Re: Living in a box  
From: Invisible
Date: 26 Apr 2012 08:18:36
Message: <4f993d1c$1@news.povray.org>
On 26/04/2012 01:07 PM, Francois Labreque wrote:

>> Almost every dialect had a strange DATA construct. A DATA statement is
>> followed by a comma-separated list of decimal numbers. The READ
>> statement fetches the next code into the specified variable. The RESTORE
>> command resets to the first DATA statement. If you want to write machine
>> code, you invariably have to write a BASIC program such as
>>
>> 10 FOR X = 1 TO 13
>> 20 READ D
>> 30 POKE (23874+X), D
>> 40 NEXT X
>> 50 DATA 45,84,27,45,95,13,75,65,42,84,13,10,59
>
> Think punch cards.

That's just scary.

But incidentally, most BASIC dialects had a way to read data off tape as 
well. Usually a READ$() function, or sometimes you had to play with CMD 
(change main device) so that your INPUT and PRINT commands now address a 
file rather than the screen...


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.