Mildred a shark
Professional

When using Mildred's c2p system it is desirable that you inform the system of what cpu the user has available. It is not generally appropriate to use a routine designed for only one cpu throughout because not all routines work as well on all cpu's. Therefore, Mildred supplies two c2p routines, one which works better on a 68030 processor, and one which works better on a 68040 processor or higher.

It is important to tell the system which cpu is available on the user's system, during the running of your program. The 68030 routine runs about 10 frames per second slower on a 68040, and vice versa, so it is important to specify a cpu-optimised routine to use. You can do this simply by passing the blitz `Processor' instruction to the routine. This function returns a number, in which 0 to 3 will represent to use the 68030 routine, and 4 represents to use the 68040+ routine. Do not attempt to pass `6' in trying to specify a 68060-specific routine because there is no need to, since the 68040 routine works very well on that cpu and also because the blitz Processor instruction only returns values up to 4.

Note that if you have disabled the availability of the 68040+ routine by using M040c2pUsage Off, and you specify that you wish to use the 68040+ routine by way of Mc2pCPUmode 4, the system will automatically revert to using the 030 routine at all times until the 040 is made available with the instruction M040c2pUsage On. In this respect, setting the CPUmode to 4 using Mc2pCPUmode, you are able to use M040c2pUsage as an alternative way of choosing which routine to use.

Possible syntax:
Mc2pCPUmode Processor.b


Processor.b
---- Processor is a number representing which cpu is available in the computer on which the program is being run. There is a blitz instruction called `Processor' which returns the appropriate value for this parameter, or alternatively values of 0, 1, 2 and 3 will represent to use the 68030 c2p routine, whereas a value of 4 will represent to use the 68040+ c2p routine.

a shark