Skip to content

Commit

Permalink
Turn on illegal instructions in the nestest suite.
Browse files Browse the repository at this point in the history
  • Loading branch information
hainesr committed Oct 28, 2020
1 parent 107944f commit a7cddee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/suites/nestest/run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ class Mos6502::Suites::NesTest < Mos6502::Suites::Runner

def test_nes
image = File.read(IMAGE_PATH).bytes
cpu = Mos6502::Cpu.new(initial_pc: NES_PRG_LOAD_LOC)
cpu = Mos6502::Cpu.new(
initial_pc: NES_PRG_LOAD_LOC, allow_illegal_ops: true
)
cpu.load_image!(
image[NES_HEADER_SIZE...(NES_HEADER_SIZE + NES_PRG_BLOCK_SIZE)],
NES_PRG_LOAD_LOC
Expand Down

0 comments on commit a7cddee

Please sign in to comment.