Previous 199869 Revisions Next

r29580 Saturday 12th April, 2014 at 22:02:12 UTC by Wilbert Pol
deco_mlc.c: Better fix for the sh2 modernization. (nw)
[src/mame/drivers]deco_mlc.c
[src/mame/includes]deco_mlc.h

trunk/src/mame/drivers/deco_mlc.c
r29579r29580
835835DRIVER_INIT_MEMBER(deco_mlc_state,avengrgs)
836836{
837837   // init options
838   m_maincpu->sh2drc_set_options(SH2DRC_FASTEST_OPTIONS);
838   dynamic_cast<sh2_device *>(m_maincpu.target())->sh2drc_set_options(SH2DRC_FASTEST_OPTIONS);
839839
840840   // set up speed cheat
841   m_maincpu->sh2drc_add_pcflush(0x3234);
842   m_maincpu->sh2drc_add_pcflush(0x32dc);
841   dynamic_cast<sh2_device *>(m_maincpu.target())->sh2drc_add_pcflush(0x3234);
842   dynamic_cast<sh2_device *>(m_maincpu.target())->sh2drc_add_pcflush(0x32dc);
843843
844844   m_mainCpuIsArm = 0;
845845   m_maincpu->space(AS_PROGRAM).install_read_handler(0x01089a0, 0x01089a3, read32_delegate(FUNC(deco_mlc_state::avengrgs_speedup_r),this));
trunk/src/mame/includes/deco_mlc.h
r29579r29580
11#include "machine/eepromser.h"
22#include "machine/deco146.h"
33#include "sound/ymz280b.h"
4#include "cpu/sh2/sh2.h"
54
65
76class deco_mlc_state : public driver_device
r29579r29580
6968   void blitRaster(bitmap_rgb32 &bitmap, int rasterMode);
7069   void draw_sprites( const rectangle &cliprect, int scanline, UINT32* dest);
7170   void descramble_sound(  );
72   required_device<sh2_device> m_maincpu;
71   required_device<cpu_device> m_maincpu;
7372   required_device<eeprom_serial_93cxx_device> m_eeprom;
7473   required_device<ymz280b_device> m_ymz;
7574   required_device<gfxdecode_device> m_gfxdecode;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team