Adding halt instructions

This commit is contained in:
Sergio Martin 2024-01-13 10:07:24 +01:00
parent e1f4d956fe
commit 86ffc7fce7
2 changed files with 1035 additions and 1026 deletions

File diff suppressed because it is too large Load Diff

View File

@ -65,7 +65,6 @@ public:
// One of the many opcodes that are undefined and stop CPU emulation.
enum { bad_opcode = 0xD2 };
private:
uint8_t const* code_map [page_count + 1];
nes_time_t clock_limit;
nes_time_t clock_count;
@ -77,8 +76,8 @@ private:
void set_code_page( int, uint8_t const* );
void update_clock_limit();
public:
registers_t r;
bool isCorrectExecution = true;
// low_mem is a full page size so it can be mapped with code_map
uint8_t low_mem [page_size > 0x800 ? page_size : 0x800];