added interrupts
This commit is contained in:
parent
56c9dfbe6e
commit
034645154d
3 changed files with 60 additions and 1 deletions
|
@ -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_
|
Loading…
Add table
Add a link
Reference in a new issue