Add TAY instruction

This commit is contained in:
g1n 2021-10-08 15:30:15 +03:00
parent c21fdeb552
commit bf8b5bb2e2
2 changed files with 7 additions and 1 deletions

View File

@ -133,6 +133,12 @@ void execute() {
cpu.N = (cpu.X & 0b1000000) > 0;
cpu.PC++;
break;
case INS_TAY:
cpu.Y = cpu.A;
cpu.Z = (cpu.Y == 0);
cpu.N = (cpu.Y & 0b1000000) > 0;
cpu.PC++;
break;
case INS_JSR:
word jsr_addr = fetch_word();
write_word(cpu.PC - 1, cpu.SP);

View File

@ -1 +1 @@
ゥU
ゥU