diff --git a/src/mame/drivers/neogeo.cpp b/src/mame/drivers/neogeo.cpp index d8afdcc4310..19b5f0e00ef 100644 --- a/src/mame/drivers/neogeo.cpp +++ b/src/mame/drivers/neogeo.cpp @@ -568,24 +568,6 @@ #define LOG_AUDIO_CPU_BANKING (0) -/************************************* - * - * Main CPU interrupt generation - * - *************************************/ - - - -// The display counter is automatically reloaded with the load register contents on scanline 224, -// 1146 mclks from the rising edge of /HSYNC. -#define NEOGEO_VBLANK_RELOAD_HTIM (attotime::from_ticks(1146, NEOGEO_MASTER_CLOCK)) - -#define IRQ2CTRL_ENABLE (0x10) -#define IRQ2CTRL_LOAD_RELATIVE (0x20) -#define IRQ2CTRL_AUTOLOAD_VBLANK (0x40) -#define IRQ2CTRL_AUTOLOAD_REPEAT (0x80) - - class mvs_state : public ngarcade_base_state { public: @@ -757,6 +739,22 @@ protected: }; + +/************************************* + * + * Main CPU interrupt generation + * + *************************************/ + +// The display counter is automatically reloaded with the load register contents on scanline 224, +// 1146 mclks from the rising edge of /HSYNC. +#define NEOGEO_VBLANK_RELOAD_HTIM (attotime::from_ticks(1146, NEOGEO_MASTER_CLOCK)) + +#define IRQ2CTRL_ENABLE (0x10) +#define IRQ2CTRL_LOAD_RELATIVE (0x20) +#define IRQ2CTRL_AUTOLOAD_VBLANK (0x40) +#define IRQ2CTRL_AUTOLOAD_REPEAT (0x80) + void neogeo_base_state::adjust_display_position_interrupt_timer() { attotime period = attotime::from_ticks((uint64_t)m_display_counter + 1, NEOGEO_PIXEL_CLOCK);