jotego / jtcores

FPGA cores compatible with multiple arcade game machines and KiCAD schematics of arcade games. Working on MiSTer FPGA/Analogue Pocket
https://patreon.com/jotego
GNU General Public License v3.0
228 stars 40 forks source link

ngpc: core hangs up when starting a cartridge #769

Closed jotego closed 1 month ago

jotego commented 1 month ago

The ngpc starts correctly in color mode and the set up menu works, but when a cartridge is inserted the core hangs up.

Reproduce the problem with: sim.sh -cart cartgame.ngc -inputs pulse.in -video 700. It will get stuck at frame 659:

frame_00659

The CPU stays in a loop leaving it briefly only for blanking interrupts.

image

$4e01 is a RAM0 address. The interrupt service increments this position:

image

jotego commented 1 month ago

The palette mux was registered and the extra clock cycle was altering the data going into the CPU. Fixed in 305a9b7c