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

Re: ONELINER TEXTADVENTURE



On Thu, 01 Jul 2004 17:01:30 -0700, Gene Wirchenko <genew@mail.ocis.net>
wrote:

>"Dunny" <paul.dunn4@ntlworld.com> wrote:
>
>>In 40e3f2ed.3531796@news.individual.net">news:40e3f2ed.3531796@news.individual.net,
>>Richard Bos <rlb@hoekstra-uitgeverij.nl> typed:
>>
>>>> To the best of my knowledge, the QL didn't run Sinclair BASIC,
>>
>>> Yes, it did, or at least some variation on it; I have the manual in
>>> front of me. I even believe that the program in question would run on
>>> the QL, but I can't be sure.
>>
>>As was mentioned earlier, the QL didn't run Sinclair BASIC - it ran Superbasic.
>>However, having not used Superbasic, I can't say if this particular program will
>>run on the QL. I *do* know the author though, and can quite categorically state
>>that he wrote it on a ZX Spectrum.
>
>     Could you please convert to a more general dialect?  What is
>CODE()?  And is that really a variable in a DATA statement?

CODE() is pretty-much the Sinclair BASIC equivalent of ASC(). It returns
the numeric character code of the first character in the supplied string
parameter. For the most part, the values returned coincide with ASCII
for characters in the range 0 to 127, the ZX Spectrum has it's own
peculiar set of extended characters in the range the 128 to 255.

And yes, those are references to previously-defined variables in the
DATA statement.

It's a clever bit of work by Mr.Koelman and no mistake!
-- 
Chris Cowley