added logging

This commit is contained in:
Lauchmelder 2021-10-22 17:49:20 +02:00
parent 0f62079193
commit f872e19707
6 changed files with 341 additions and 268 deletions

View file

@ -27,6 +27,7 @@ struct Opcode
enum Operation op;
enum AddrMode addr;
Byte cycles;
Byte length;
const char str[4];
};
@ -59,6 +60,7 @@ struct CPU
Word pc;
Byte remainingCycles;
size_t totalCycles;
Byte fetchedVal;
Word fetchedAddress;
@ -72,7 +74,7 @@ struct CPU
struct CPU* createCPU(struct Bus* parent);
void destroyCPU(struct CPU* cpu);
void tickCPU(struct CPU* cpu);
int tickCPU(struct CPU* cpu);
void tickInstr(struct CPU* cpu);
void fetch(struct CPU* cpu);