/* This source also contains code that has descended from Apple Sample Code package	ATADemo  Copyright: © 1996, 1997, 1998,1999 by Apple Computer, Inc.				all rights reserved.	From the ATADemo source :		Disclaimer:	You may incorporate this sample code into your applications without				restriction, though the sample code has been provided "AS IS" and the				responsibility for its operation is 100% yours.  However, what you are				not permitted to do is to redistribute the source as "DSC Sample Code"				after having made changes. If you're going to re-distribute the source,				we require that you make it clear in the source that the code was				descended from Apple Sample Code, but that you've made changes. */#define RESULT_OFFSET(type) \     ((sizeof(type) == 1) ? 3 : ((sizeof(type) == 2) ? 1 : 0)) #define TBTrapTableAddress(trapNum) (((trapNum & 0x03FF) << 2) + 0xE00)