fixed gcc build errors

This commit is contained in:
Robert 2021-10-29 22:17:01 +02:00
parent f2baa96968
commit cabc0ae639
3 changed files with 7 additions and 6 deletions

View file

@ -37,7 +37,7 @@ struct Opcode
const char str[4];
};
const struct Opcode OPCODE_TABLE[256];
extern const struct Opcode OPCODE_TABLE[256];
struct CPU
@ -74,7 +74,7 @@ struct CPU
} pc;
char remainingCycles;
size_t totalCycles;
Qword totalCycles;
Byte fetchedVal;
Word fetchedAddress;
@ -100,4 +100,4 @@ void execute(struct CPU* cpu);
void IRQ(struct CPU* cpu);
void NMI(struct CPU* cpu);
#endif // _CPU_H_
#endif // _CPU_H_