Date : Wed, 17 Nov 2010 08:42:50 +0000 (GMT)
From : info@... (Sprow)
Subject: Beeb Networking
In article <20101116132130.9plsv1se0wos8o4c@...>,
J.G.Harston <jgh@...> wrote:
> Yes, the IF PAGE>&8000 is a quick'n'dirty way of deciding that you're
> running on ARM BASIC, but I haven't been able to work out a succinct
> better way of testing it.
How about doing a read of something that is unlikely to ever be implemented
in 6502 BASIC, but is always present in ARM BASIC?
eg.
DEFFNdetectBASIC5
LOCAL temp
ON ERROR =FALSE
temp=BEAT
=TRUE
or look at REPORT$ on startup,
or try $&70="Hello" which gives a 'too low' error.
Not sure why this got sorted into the beeb networking thread...
Sprow.