MACHINE
                                =======

                   Returns machine and processor type


        mach = MACHINE

Returns

  0 QL and Ordinary ST
  2 Mega ST or ST with RTC
  4 Stacy
  6 Ordinary STE
  8 Mega STE
 10 Gold card
 12 SuperGold card
 16 Falcon
 17 Q40/Q60
 18 Q68
 19 Qzero
 20 SMSQmulator
 24 Atari TT
 26 Q-Emulator
 28 QXL
 30 QPC

 + 1 = ST + blitter or QL + Hermes


        pro = PROCESSOR

Returns

  0 68000/8
 10 68010
    ...
 60 68060

Other values may be returned indicating an FPU or MMU!


To use
======

This toolkit forms part of my Compatibility Project to enable as many
programs as possible to run across as many platforms as possible.

These functions are built in to SMSQ/E. However, with this toolkit they
are also available for use under Qdos and Minerva:

If you need to use these functions in your code you could simply add
this toolkit to your (compiled) program. Your code should then be able to
run on any other platform (provided the rest of your program also does so,
of course).

The other use case is if you are trying to run a program that uses these
functions, under Qdos/Minerva, and the author hasnt made provision for
them in his code (as described above) then, provided your platform is
otherwise capable, you can simply LRESPR this toolkit before running the
program.


Software status
===============

These routines were extracted from the SMSQ sources and packaged by me

A small bug was corrected from the original code which doesnt error on
unwanted parameters and could therefore return a wrong result. E.g

        PRINT MACHINE(1,2)


Note: You may get different results than those stated here depending on
your platform and additional capabilites. If in doubt check the
documentation (SMSQ Reference Guide) as I do not have all the platforms
available to test on.

Note: Not all platforms support the structures these routines rely on!
Lobby the producer or maintainer of your platform to fix this!


Let me know about any anomailies you discover so I may update the code or
documentation!


V2.00, ©Tony Tebby, 1994
V2.01, pjw, 2025 Sep 01


               Conditions of use and DISCLAIMER as per Knoware.no

Generated by QuickHTM, 2025 Sep 01