home *** CD-ROM | disk | FTP | other *** search
- #include <stdio.h>
-
- #include "InterruptDisableLib.h"
-
- void main(void)
- {
- UInt16 firstExecutionMask;
- UInt16 firstExecutionMask2;
- UInt16 secondExecutionMask;
- UInt16 secondExecutionMask2;
- UInt16 thirdExecutionMask;
-
- printf("Hello Cruel World!\n");
- printf("TestInterruptDisable.c\n");
-
- Debugger();
-
- firstExecutionMask = GetInterruptMask();
-
- firstExecutionMask2 = SetInterruptMask(5);
-
- secondExecutionMask = GetInterruptMask();
-
- secondExecutionMask2 = SetInterruptMask(0);
-
- thirdExecutionMask = GetInterruptMask();
-
- printf("firstExecutionMask = %d\n", firstExecutionMask);
- printf("firstExecutionMask2 = %d\n", firstExecutionMask2);
- printf("secondExecutionMask = %d\n", secondExecutionMask);
- printf("secondExecutionMask2 = %d\n", secondExecutionMask2);
- printf("thirdExecutionMask = %d\n", thirdExecutionMask);
-
- printf("Done. Press command-Q to Quit.\n");
- }