2 ; Original GPL release version 4.12
3 ; Copyright 1993-2000 Jonathan Potter
5 ; This program is free software; you can redistribute it and/or
6 ; modify it under the terms of the GNU General Public License
7 ; as published by the Free Software Foundation; either version 2
8 ; of the License, or (at your option) any later version.
10 ; This program is distributed in the hope that it will be useful,
11 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ; GNU General Public License for more details.
15 ; You should have received a copy of the GNU General Public License
16 ; along with this program; if not, write to the Free Software
17 ; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 ; All users of Directory Opus 4 (including versions distributed
20 ; under the GPL) are entitled to upgrade to the latest version of
21 ; Directory Opus version 5 at a reduced price. Please see
22 ; http://www.gpsoft.com.au for more information.
24 ; The release of Directory Opus 4 under the GPL in NO WAY affects
25 ; the existing commercial status of Directory Opus 5.
27 * Get CPU usage as a percentage
28 * getusage
() routine takes no arguments
, returns value from
0 to
100 in d0
29 * basically pinched from an old version of xoper
, thanks Werner
:)
36 movem.l d1
-d3
/a6
,-(sp)
51 movem.l
(sp)+,d1
-d3
/a6
78 * 32-bit division routines