neogeo: move out-of-place section to where it was before (nw)

This commit is contained in:
hap 2018-09-19 15:19:47 +02:00
parent 7d58fbe09f
commit f65d6a204e

View File

@ -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);