forked from jordanbray/CECS-525-in-C-shell
-
Notifications
You must be signed in to change notification settings - Fork 0
/
m68klib.h
35 lines (30 loc) · 992 Bytes
/
m68klib.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef __M68KLIB_H__
#define __M68KLIB_H__
#include <screen.h>
/**
* Status Register
* */
typedef struct sr_s {
unsigned interrupt : 3;
unsigned __future__0__ : 1;
unsigned master : 1;
unsigned supervisor : 1;
unsigned __future__1__ : 1;
unsigned trace : 1;
unsigned carry : 1;
unsigned overflow : 1;
unsigned zero : 1;
unsigned negative : 1;
unsigned extended : 1;
unsigned __future__2__ : 3;
} __attribute__((packed)) sr_t;
void __attribute__ ((interrupt)) excep_undef(void);
void __attribute__ ((interrupt)) excep_bus_error(void);
void __attribute__ ((interrupt)) excep_address_error(void);
void __attribute__ ((interrupt)) excep_illegal_instruction(void);
void __attribute__ ((interrupt)) excep_divide_by_zero(void);
void __attribute__ ((interrupt)) excep_chk_instruction(void);
void __attribute__ ((interrupt)) excep_trapv_instruction(void);
void __attribute__ ((interrupt)) excep_privilage_violation(void);
void __attribute__ ((interrupt)) excep_trace(void);
#endif