Skip to content

Commit

Permalink
Fixed illegal Opcode 0x02 at 0x007E in Astral World (#322).
Browse files Browse the repository at this point in the history
  • Loading branch information
punesemu committed Sep 25, 2023
1 parent b3a3859 commit 20db77f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/ines.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ BYTE ines_load_rom(void) {
// in 64 being added to the mapper number. A general rule of thumb: if the last 4 bytes are
// not all zero, and the header is not marked for NES 2.0 format, an emulator should either
// mask off the upper 4 bits of the mapper number or simply refuse to load the ROM.
if (ines.flags[FL12] | ines.flags[FL13] | ines.flags[FL14] | ines.flags[FL15]) {
if ((ines.flags[FL12] >= ' ') | (ines.flags[FL13] >= ' ') |
(ines.flags[FL14] >= ' ') | (ines.flags[FL15] >= ' ')) {
info.mapper.id = ines.flags[FL6] >> 4;
cpu_timing = 0;
} else {
Expand Down

0 comments on commit 20db77f

Please sign in to comment.