Files
super6502/sw/interrupt.h
Byron Lathi a5474b5ae5 Implement interrupt status register
Upon an interrupt, you can read from the interrupt status register to
see what caused the interrupt.
2022-03-14 13:30:01 -05:00

13 lines
156 B
C

#ifndef _INTERRUPT_H
#define _INTERRUPT_H
#include <stdint.h>
#define BUTTON (1 << 0)
void irq_int();
void nmi_int();
uint8_t irq_get_status();
#endif