added LAX

This commit is contained in:
Lauchmelder 2021-10-23 16:00:40 +02:00
parent cb890b0960
commit 2596ac2c65
2 changed files with 10 additions and 1 deletions

View file

@ -462,6 +462,15 @@ void execute(struct CPU* cpu)
cpu->pc.word = cpu->fetchedAddress;
} break;
case LAX:
{
cpu->acc = cpu->fetchedVal;
cpu->x = cpu->fetchedVal;
cpu->status.negative = ((cpu->acc & 0x80) == 0x80);
cpu->status.zero = (cpu->acc == 0x00);
} break;
case LDA:
{
cpu->acc = cpu->fetchedVal;