Skip to content

Commit

Permalink
😭 im on my
Browse files Browse the repository at this point in the history
  • Loading branch information
amukh1 committed Mar 5, 2024
1 parent 9318005 commit 5c06451
Show file tree
Hide file tree
Showing 12 changed files with 122 additions and 2,100 deletions.
4 changes: 2 additions & 2 deletions CPU.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -304,8 +304,8 @@ void CPU::STA(std::unique_ptr<Memory>& mem) {
mem->Write(address + Y, A);
PC++;
}else if(mem->Read(PC) == 0x95) { // X-indexed zero page
WORD address = (WORD)mem->Read(PC+1);
mem->Write((WORD)(address + X), A);
BYTE address = (BYTE)mem->Read(PC+1);
mem->Write((WORD)(BYTE)(address + X), A);
PC++;
}
// std::cout << "STA" << std::endl;
Expand Down
Loading

0 comments on commit 5c06451

Please sign in to comment.