Re: Another file question (PET)

From: Rhialto (rhialto_at_azenomei.knuffel.net)
Date: 2002-11-20 17:35:47

On Wed 20 Nov 2002 at 00:31:32 +0100, Andre Fachat wrote:
> With this method some BASIC programs determine the kernal version
> and modify some variable values for zeropage locations etc.

A trick for BASIC programs that wish to distinguish between old and new
basic is to PEEK() some location in the BASIC interpreter. The old basic
interpreter always returned 0 for PEEK() between some addresses,
corresponding to the BASIC interpreter. PEEK(50003) was a popular
location I think, because in the new basic it contains 1.

> Andre
-Olaf.
-- 
___ Olaf 'Rhialto' Seibert      -- The evil eye is caused by the black
\X/ rhialto/at/xs4all.nl        -- tongue - Tom Poes, "Het boze oog", 4456.

       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail 2.1.4.