added interrupts

This commit is contained in:
Lauchmelder 2021-10-24 16:52:15 +02:00
parent 56c9dfbe6e
commit 034645154d
3 changed files with 60 additions and 1 deletions

View file

@ -80,6 +80,9 @@ struct CPU
Word fetchedAddress;
char fetchedRelAddress;
Byte irq;
Byte nmi;
const struct Opcode* currentOpcode;
struct Bus* bus;
@ -94,4 +97,7 @@ void tickInstr(struct CPU* cpu);
void fetch(struct CPU* cpu);
void execute(struct CPU* cpu);
void IRQ(struct CPU* cpu);
void NMI(struct CPU* cpu);
#endif // _CPU_H_