🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.atari.st
Article #39342

versions

#39342
From: to_stdnet
Date: Fri, 09 Jun 1989 10:36
64 lines
2534 bytes
From: stag!thelake!steve@bungia.mn.org (Steve Yelvington)

 kbad@atari.UUCP (Ken Badertscher) writes ...
 
> In article <801@orbit.UUCP> steve@pnet51.cts.com (Steve Yelvington) writes:
> | The Sversion() Gemdos function allegedly provides this information, but on my
> | STFM it returns a value of 0.19. Does anybody know whether Sversion() really
> | works?
> 
> Hmm, Sversion is returning a float value?  Hmmm... ;-)

No, I'm not *that* silly. What I did was:

#include <stdio.h>
#include <osbind.h>
main()
   {
   int vsn;
   vsn = Sversion();
   printf("Version %d.%d\n", vsn & 0xFF, (vsn >> 8) & 0xFF);
   }

... basing the above on the Sversion() documentation in Pollack & Weber's
"Atari ST Application Programming," which says in part:
    "The high byte contains the minor version number and the low byte
     the major version number."
> 
> Sversion() returns the GEMDOS version number, not the TOS version.  The
> GEMDOS version number for your machine should be 0x1300 (our version
> numbers are all WORD values); I'm not sure how you get 0.19 from that,
> but...   

Well, 19 decimal == 13 hex. 

(stuff omitted)

> Versions
> ==============
>  ROM TOS  Mega TOS  
>  -------  --------  -------
>   $0100    $0102     $0104      TOS version (from the OS header)
>   $1300    $1300     $1500      GEMDOS version (from the Sversion call)
>   $0100    $0120     $0140      AES version (from global[0] after appl_init)
> 

Heh... what IS the new version of TOS going to be called, Ken? 
Besides late, I mean. :-)

> Can you now see why we don't like to give OS releases specific version
> numbers? ;-)
 
This reminds me of when I worked at the (late, lamented) St. Louis
Globe-Democrat and had to converse with the platemakers regarding editions
of the paper. The edition we in the newsroom called "Early Metro"
was the one they called "The run that goes down after Charlie goes to
dinner." And our business was communications....

At any rate, I'll alter my version-reading program to deliver values for
all three magic numbers. Thanks for the info.



#define steve@thelake.UUCP      pwcs!stag!thelake!steve
#define steve@thelake.citadel   the_land!class68!thelake!steve
Technical Details
Message-ID: <865@stag.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!csd4.milw.wisc.edu!srcsip!tcnet!pwcs!stag!daemon

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!csd4.milw.wisc.edu!srcsip!tcnet!pwcs!stag!daemon
From: to_stdnet@stag.UUCP
Newsgroups: comp.sys.atari.st
Subject: versions
Message-ID: <865@stag.UUCP>
Date: 9 Jun 89 10:36:09 GMT
Sender: daemon@stag.UUCP
Lines: 64