Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit c59d245ecf20b53d47c78bbd688241d7351dd6a0 1 parent cacc5e8
Mitchell Plamann authored
Showing with 1 addition and 2 deletions.
  1. +0 −1  src/CpuRegisters.cpp
  2. +1 −1  src/CpuState.cpp
1  src/CpuRegisters.cpp
View
@@ -60,7 +60,6 @@ bool CpuRegisters::RunInstruction()
PC += 1;
cycles += 2;
S = X;
- setNZ(S);
break;
case TYA:
PC += 1;
2  src/CpuState.cpp
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.