fixed mem access violation

This commit is contained in:
Lauchmelder 2021-10-24 13:47:11 +02:00
parent 2b71e3e0d2
commit 56c9dfbe6e
8 changed files with 188 additions and 64 deletions

View file

@ -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)
{
@ -425,7 +425,7 @@ void execute(struct CPU* cpu)
cpu->y--;
cpu->status.negative = ((cpu->y & 0x80) == 0x80);
cpu->status.zero = (cpu->y == 0x80);
cpu->status.zero = (cpu->y == 0x00);
} break;
case EOR: