added SDL

This commit is contained in:
Lauchmelder 2021-10-23 20:36:38 +02:00
parent 7c0957325f
commit 2b71e3e0d2
8 changed files with 85 additions and 22 deletions

View file

@ -25,7 +25,7 @@ struct CPU* createCPU(struct Bus* parent)
}
// TODO: THIS IS JUST FOR THE TEST ROM
// cpu->pc.word = 0xC000;
cpu->pc.word = 0xC000;
cpu->pc.word = ((Word)readBus(parent, 0xFFFD) << 8) | readBus(parent, 0xFFFC);
cpu->status.raw = 0x34;
@ -189,7 +189,7 @@ void fetch(struct CPU* cpu)
void execute(struct CPU* cpu)
{
LOG_BUS(cpu->bus);
// LOG_BUS(cpu->bus);
switch (cpu->currentOpcode->op)
{