User`s manual

342 digi.com
A.4 Exception Types
These macros are defined in errors.lib:
A.5 Rabbit Registers
Macros are defined for all of the Rabbit registers that are accessible for application programming. A list of
these register macros can be found in the users manuals for the Rabbit microprocessor, as well as in the
Rabbit Registers file accessible from the Dynamic C Help menu.
A.5.1 Shadow Registers
Shadow registers exist for many of the I/O registers. They are character variables defined in the BIOS. The
naming convention for shadow registers is to append the word Shadow to the name of the register. For
example, the global control status register, GCSR, has a corresponding shadow register named
GCSRShadow.
The purpose of the shadow registers is to allow the program to reference the last value programmed to the
actual register. This is needed because a number of the registers are write only.
#define ERR_BADPOINTER
#define ERR_BADARRAYINDEX
#define ERR_DOMAIN
#define ERR_RANGE
#define ERR_FLOATOVERFLOW
#define ERR_LONGDIVBYZERO
#define ERR_LONGZEROMODULUS
#define ERR_BADPARAMETER
#define ERR_INTDIVBYZERO
#define ERR_UNEXPECTEDINTRPT
#define ERR_CORRUPTEDCODATA
#define ERR_VIRTWDOGTIMEOUT
#define ERR_BADXALLOC
#define ERR_BADSTACKALLOC
#define ERR_BADSTACKDEALLOC
#define ERR_BADXALLOCINIT
#define ERR_NOVIRTWDOGAVAIL
#define ERR_INVALIDMACADDR
#define ERR_INVALIDCOFUNC
228
229
234
235
236
237
238
239
240
241
243
244
245
246
247
249
250
251
252