home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
zip
/
utility
/
stint3_1.lzh
/
makcooky.txt
< prev
next >
Wrap
Text File
|
1991-06-05
|
2KB
|
72 lines
MAKCOOKY.PRG
Mike Horwell 14/4/91
As some of you are aware, the STE and TT have a 'COOKIE JAR' installed.
This COOKIE JAR is a table which is set up by the operating system with
the capability of informing applications the type of system they are
running on - such as machine type, processor type etc.
The really neat thing about it is that any new devices installed can
insert their I.D and address (or version number) so that other
applications can take advantage of them. For example, MACCEL.PRG v2
and v3 install an I.D of $00AA006E followed by the address at which
MACCEL is loaded. If you wanted to configure it yourself, think of how
difficult it would be to find it if you couldn't use this table.
OK - so now we know how useful this table is, what about the ST owners
who do not have this table? Never fear - that's exactly what MAKCOOKY
does. It checks the location at $5A0 to see if a table is already
installed - if so it simply exits. If this location is empty, it will
set up a new table.
**********************************************************************
NOTE
Since the program is installing the cookie jar, the machine MUST be a
ST and so the program makes some standard assumptions regarding the
machine, video shifter type and sound capabilities - but does make an
attempt to identify the type of processor installed in the machine by
using some commands only recognised by the different processors.
**********************************************************************
The variables installed are :
_CPU This is the type of processor
$00000000 = 68000
$00000014 = 68020
$0000001E = 68030
_MCH The type of machine
$00000000 = ST
$00010000 = STE
$00020000 = TT030
_VDO The type of video shifter
$00000000 = ST
_SND The type of sound output
$00000001 = ST Sound Chip
There is also space for 8 more COOKIES
Well that's it, except to say that this program is in the Public Domain
and as such I will not be held responsible for any loss of data or damage
which may or may not have been directly ot indirectly caused from using
this program.
If you have any comments write to me at
Mike Horwell
Barbary Park
Trematon
Cornwall
England
PL12 4RT