15e9917ca1d2cdd2af171e4b15a3c0d062b9b840
[AROS.git] / arch / m68k-all / exec / getcc.c
blob15e9917ca1d2cdd2af171e4b15a3c0d062b9b840
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: GetCC() - Read the CPU condition codes in an easy way.
6 Lang: english
7 */
9 #include <aros/debug.h>
11 /*****************************************************************************
13 NAME */
14 #include <proto/exec.h>
16 AROS_LH0(UWORD, GetCC,
18 /* LOCATION */
19 struct ExecBase *, SysBase, 88, Exec)
21 /* FUNCTION
22 Read the contents of the CPU condition code register in a system
23 independant way. The flags return will be in the same format as
24 the Motorola MC680x0 family of microprocessors.
26 INPUTS
27 None.
29 RESULT
30 The CPU condition codes or ~0ul if this function has not been
31 implemented.
33 NOTES
35 EXAMPLE
37 BUGS
38 This function may not be implemented on platforms other than
39 Motorola mc680x0 processors.
41 SEE ALSO
42 SetSR()
44 INTERNALS
46 ******************************************************************************/
48 AROS_LIBFUNC_INIT
50 /* Overridden on the RegCall ABI's startup routine */
51 aros_print_not_implemented("GetCC");
52 return ~0;
54 AROS_LIBFUNC_EXIT
55 } /* GetCC() */