Improve interrupt trigger code readability
[emu8051.git] / src / cpu8051.h
index 4d77690..adb96c8 100644 (file)
 /* Maximum number of BreakPoints */
 #define MAXBP 32
 
+#define INTERRUPT_0 (0)
+#define INTERRUPT_1 (1)
+#define INTERRUPT_2 (2)
+#define INTERRUPT_3 (3)
+#define INTERRUPT_4 (4)
+#define INTERRUPT_5 (5)
+#define INTERRUPT_MASK(n) (1 << n)
+
+#define INTERRUPT_PRIORITY_HIGH     (1)
+#define INTERRUPT_PRIORITY_LOW      (0)
+
 struct cpu8051_t {
        unsigned int pc; /* Program counter */
        unsigned long clock;