[comp.sys.atari.st] Language version

jackin@vehka.uta.fi (Markku M{enp{{) (09/12/90)

I need to know what version (language) my Mega has.
I have a wrong version of WordUp 3.0 

(yup, won't start with a wrong version, I would really 
like to know why they did it that way. Could it be the 
ability to work without GDOS etc.)

I suppose there is a address somewhere in ROM where
I could peek, but what is it.

Thanks,
Markku (jackin@vehka.uta.fi)

apratt@atari.UUCP (Allan Pratt) (09/14/90)

jackin@vehka.uta.fi (Markku M{enp{{) writes:
>I need to know what version (language) my Mega has.

There is a system variable, _sysbase, which points to the "OS Header."
The OS Header contains information about the TOS you are running,
including the country (language, keyboard) you have. That value is
found in the WORD at offset $1c from the address _sysbase points to;
it's called "os_conf" for "OS configuration."

The least-significant bit of this word is 0 for NTSC and 1 for PAL. The
next four bits (at least) encode the country the OS was built for:

	VALUE		COUNTRY
	  0		USA
	  1		Germany
	  2		France
	  3		UK
	  4		Spain
	  5		Italy
	  6		Sweden
	  7		Switzerland, French language ("Swiss/French")
	  8		Switzerland, German language ("Swiss/German")
	  9		Turkey
	 10		Finland
	 11		Norway
	 12		Denmark

Other values may mean other things in the future; no tight promises
there.  For that matter, this word may lose most of its meaning if, in
future, a single set of ROMs contains the keyboard and language for
many countries.  Those issues will be decided when they arise.

============================================
Opinions expressed above do not necessarily	-- Allan Pratt, Atari Corp.
reflect those of Atari Corp. or anyone else.	  ...ames!atari!apratt