added LAX
This commit is contained in:
parent
cb890b0960
commit
2596ac2c65
2 changed files with 10 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue