Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!julius.cs.uiuc.edu!apple!portal!atari!apratt From: apratt@atari.UUCP (Allan Pratt) Newsgroups: comp.sys.atari.st Subject: Re: Language version (TOS) ? Message-ID: <2296@atari.UUCP> Date: 13 Sep 90 22:07:26 GMT References: <1556@kielo.uta.fi> Organization: Atari Corp., Sunnyvale CA Lines: 35 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