added ppu register access

This commit is contained in:
Lauchmelder 2021-10-23 20:16:29 +02:00
parent 19d138fb5f
commit 7c0957325f
7 changed files with 113 additions and 19 deletions

View file

@ -25,7 +25,8 @@ 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;
cpu->acc = 0;