Skip to content

Commit

Permalink
fix testing break flag
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Sep 2, 2024
1 parent b723498 commit 247a290
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/huc6280_opcodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ void HuC6280::OPCode0x28()
// PLP
m_P.SetValue(StackPop8());
m_skip_flag_transfer_clear = true;
#if defined(GG_TESTING)
ClearFlag(FLAG_BREAK);
#endif
}

void HuC6280::OPCode0x29()
Expand Down Expand Up @@ -411,6 +414,9 @@ void HuC6280::OPCode0x40()
m_P.SetValue(StackPop8());
m_PC.SetValue(StackPop16());
m_skip_flag_transfer_clear = true;
#if defined(GG_TESTING)
ClearFlag(FLAG_BREAK);
#endif
}

void HuC6280::OPCode0x41()
Expand Down
2 changes: 1 addition & 1 deletion tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ int main(int argc, char* argv[])
continue;
}

//Log("Testing %02X: %s", i, k_huc6280_opcode_names[i].name);
Log("Testing %02X: %s", i, k_huc6280_opcode_names[i].name);

snprintf(file_number, 4, "%02x", i);
snprintf(file_name, 10, "%s.json", file_number);
Expand Down

0 comments on commit 247a290

Please sign in to comment.