fixed mem access violation
This commit is contained in:
parent
2b71e3e0d2
commit
56c9dfbe6e
8 changed files with 188 additions and 64 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue