Browse files

Fixed a bug with TXS - it doesn't affect flags

  • Loading branch information...
1 parent cacc5e8 commit c59d245ecf20b53d47c78bbd688241d7351dd6a0 @mplamann committed Oct 5, 2012
Showing with 1 addition and 2 deletions.
  1. +0 −1 src/CpuRegisters.cpp
  2. +1 −1 src/CpuState.cpp
View
1 src/CpuRegisters.cpp
@@ -60,7 +60,6 @@ bool CpuRegisters::RunInstruction()
PC += 1;
cycles += 2;
S = X;
- setNZ(S);
break;
case TYA:
PC += 1;
View
2 src/CpuState.cpp
@@ -271,7 +271,7 @@ bool CpuState::RunInstruction()
int arg2 = memory->readByteFrom(PC+2);
cout << setw(4) << PC << " " << setw(2) << opcode << " " << setw(2) << arg1 << " " << setw(2) << arg2 << " " << nameForOpcode(opcode) << " ";
- cout << "A:" << setw(2) << A << " X:" << setw(2) << X << " Y:" << setw(2) << Y << " P:" << setw(2) << getP() << " SP:" << setw(2) << S << " CYC:" << setw(3) << cycles << "\n";
+ cout << "A:" << setw(2) << A << " X:" << setw(2) << X << " Y:" << setw(2) << Y << " P:" << setw(2) << getP() << " SP:" << setw(2) << S << " $180:" << setw(3) << memory->readByteFrom(0x0180) << "\n";
// cout << setw(3) << nameForOpcode(opcode) << " " << setw(3) << arg1 << " " << setw(3) << arg2;
//cout << " A: " << setw(3) << A << " X: " << setw(3) << X << " Y: " << setw(3) << Y << " PC: " << setw(4) << PC << " S: " << setw(3) << S << "\n";
#endif

0 comments on commit c59d245

Please sign in to comment.