trunk/src/mess/machine/sns_sgb.c
| r23909 | r23910 | |
| 13 | 13 | #include "emu.h" |
| 14 | 14 | #include "machine/sns_sgb.h" |
| 15 | 15 | |
| 16 | | #include "cpu/lr35902/lr35902.h" |
| 17 | | |
| 18 | 16 | //------------------------------------------------- |
| 19 | 17 | // sns_rom_sgb_device - constructor |
| 20 | 18 | //------------------------------------------------- |
| r23909 | r23910 | |
| 89 | 87 | |
| 90 | 88 | READ8_MEMBER(sns_rom_sgb_device::gb_ie_r) |
| 91 | 89 | { |
| 92 | | // return m_gb_cpu->get_ie(); |
| 93 | | return 0; |
| 90 | return m_gb_cpu->get_ie(); |
| 94 | 91 | } |
| 95 | 92 | |
| 96 | 93 | WRITE8_MEMBER(sns_rom_sgb_device::gb_ie_w) |
| 97 | 94 | { |
| 98 | | // m_gb_cpu->set_ie(data & 0x1f); |
| 95 | m_gb_cpu->set_ie(data & 0x1f); |
| 99 | 96 | } |
| 100 | 97 | |
| 101 | 98 | |
trunk/src/mess/machine/sns_sgb.h
| r23909 | r23910 | |
| 4 | 4 | #include "machine/sns_slot.h" |
| 5 | 5 | #include "machine/sns_rom.h" |
| 6 | 6 | |
| 7 | | //#include "cpu/lr35902/lr35902.h" |
| 7 | #include "cpu/lr35902/lr35902.h" |
| 8 | 8 | #include "machine/gb_slot.h" |
| 9 | 9 | #include "machine/gb_rom.h" |
| 10 | 10 | #include "machine/gb_mbc.h" |
| r23909 | r23910 | |
| 43 | 43 | virtual DECLARE_WRITE8_MEMBER(gb_ie_w); |
| 44 | 44 | virtual DECLARE_WRITE8_MEMBER(gb_timer_callback); |
| 45 | 45 | |
| 46 | | required_device<cpu_device> m_gb_cpu; |
| 46 | required_device<lr35902_cpu_device> m_gb_cpu; |
| 47 | 47 | required_device<gameboy_sound_device> m_gb_snd; |
| 48 | 48 | required_device<sgb_lcd_device> m_gb_lcd; |
| 49 | 49 | required_device<gb_cart_slot_device> m_cartslot; |