AndreaOrru / LaiNES

Cycle-accurate NES emulator in ~1000 lines of code
BSD 2-Clause "Simplified" License
1.49k stars 122 forks source link

Invalid instruction? Puzznic causes exit(1) #26

Closed kraln closed 7 years ago

kraln commented 7 years ago

Starting a game of puzznic, when you move a piece, LaiNES exits with code 1. Invalid opcode?

AndreaOrru commented 7 years ago

Probably. Have you tried changing the invalid opcode case with a printf?

kraln commented 7 years ago

Seems to be a handful of "invalid" opcodes which do useful things, and were used in a handful of real games (many may be porting errors) and in some homebrew as well. #29 fixes the ones that used NOPs, anything more exotic will be broken unless we implement the remaining invalid opcodes.