• ARM 3 Detection routines (version 1.00 - 8th September 1993)
------------------------
• Why?
Some programs (eg. games) need to know whether an Arm3 chip is present. I saw a version of E-Type that didn't recognise an Arm3, and resulted in average speeds of well over 400mph! (I don't know if that's been fixed yet)
• Why haven't Acorn produced a detection routine?
They have! But it only works on machines fitted with an Arm3 - making it slightly less useful than a biodegradeable life raft.
• How do I use them?
There are 4 routines, in various languages:
Assembler : a small routine that, when called, sets r0 to 0 if Arm 3 is NOT
present, or &ffffffff if it IS present.
Basic : a function that returns TRUE if Arm 3 IS present or FALSE if it
isn't.
C : a function that returns TRUE if Arm 3 IS present or FALSE if it
isn't. (Note that it needs the SWI veneer from Jason Williams
excellent DeskLib)
Obey : Sets the system variable Arm3$Present to Yes or No.
All except the obey file version actually check whether the Arm3 is enabled, and if it isn't return as if the Arm3 is not present.
• May I use them in my own programs?
Of course you can! These routines may be freely used in any program, PD, freeware, shareware, commercial, rhubarbware (tm), pizzaware, postcardware, or any other type of program you like.
IT WOULD BE NICE IF you sent me a free copy of whatever you use it in, or at least put a thankyou message in the final product, but you don't have to.
• Can I give these to all my friends?
So long as you give them all the files included within the archive and these documents, and so long as you don't alter any files, then yes, you can give these files to whoever you like (or don't like).
The files which must be in this archive are:
Assembler
Basic
C
Docs
Obey
• Are you sure they'll work though?
No, I'm not. I only have an Arm3 machine to test them on, but I'm pretty sure about all except the C one. If anyone wants to test all the routines on Arm2 and Arm3 machines, then please tell me whether they work or not.
• So who wrote them then?
Ainsley M. Pereira (thats Amp or Ampy if you prefer) of ARMFul Software.
snail mail: 'Al Sirat'
Chapel Road
Swanmore
Hants SO3 2QA
ENGLAND
netmail : 2:251/16.50@fidonet.org
(or you can contact me on The Digital Databank BBS (0707) 329306, ANSI 8N1, but the netmail will be faster)
Until next time,
/\
(--)insley
=== Where there's a will, there's an inheritance tax. ===