mirror of
https://github.com/SEPPDROID/Digital-Research-Source-Code.git
synced 2025-10-24 08:54:17 +00:00
Upload
Digital Research
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#include <stdio.h>
|
||||
#include <signal.h>
|
||||
|
||||
main()
|
||||
{
|
||||
int illegal();
|
||||
int buserr();
|
||||
|
||||
signal(SIGIOT,&illegal);
|
||||
signal(SIGBUS,&buserr);
|
||||
xbarf();
|
||||
printf("Return OK\n");
|
||||
}
|
||||
illegal()
|
||||
{
|
||||
printf("Trap instruction\n");
|
||||
}
|
||||
buserr()
|
||||
{
|
||||
printf("Bus error exception\n");
|
||||
}
|
||||
Reference in New Issue
Block a user