| Previous | 199869 Revisions | Next |
| r21597 Tuesday 5th March, 2013 at 14:00:33 UTC by Miodrag Milanović |
|---|
| some snes cleanup (nw) |
| [src/mame/drivers] | nss.c sfcbox.c snesb.c |
| [src/mame/includes] | snes.h |
| [src/mame/machine] | snes.c |
| [src/mess/drivers] | snes.c |
| r21596 | r21597 | |
|---|---|---|
| 642 | 642 | MCFG_MACHINE_RESET( snes ) |
| 643 | 643 | |
| 644 | 644 | /* video hardware */ |
| 645 | MCFG_VIDEO_START( snes ) | |
| 646 | ||
| 647 | 645 | MCFG_SCREEN_ADD("screen", RASTER) |
| 648 | 646 | MCFG_SCREEN_RAW_PARAMS(DOTCLK_NTSC, SNES_HTOTAL, 0, SNES_SCR_WIDTH, SNES_VTOTAL_NTSC, 0, SNES_SCR_HEIGHT_NTSC) |
| 649 | 647 | MCFG_SCREEN_UPDATE_DRIVER( snes_state, screen_update ) |
| r21596 | r21597 | |
|---|---|---|
| 480 | 480 | MCFG_SOUND_ROUTE(1, "rspeaker", 1.00) |
| 481 | 481 | |
| 482 | 482 | /* video hardware */ |
| 483 | MCFG_VIDEO_START( snes ) | |
| 484 | ||
| 485 | 483 | /* TODO: the screen should actually superimpose, but for the time being let's just separate outputs */ |
| 486 | 484 | MCFG_DEFAULT_LAYOUT(layout_dualhsxs) |
| 487 | 485 |
| r21596 | r21597 | |
|---|---|---|
| 845 | 845 | MCFG_SOUND_ROUTE(1, "rspeaker", 1.00) |
| 846 | 846 | |
| 847 | 847 | /* video hardware */ |
| 848 | MCFG_VIDEO_START( snes ) | |
| 849 | ||
| 850 | 848 | /* TODO: the screen should actually superimpose, but for the time being let's just separate outputs */ |
| 851 | 849 | MCFG_DEFAULT_LAYOUT(layout_dualhsxs) |
| 852 | 850 |
| r21596 | r21597 | |
|---|---|---|
| 31 | 31 | /* -- Globals -- */ |
| 32 | 32 | UINT8 *snes_ram = NULL; /* 65816 ram */ |
| 33 | 33 | |
| 34 | struct snes_cart_info snes_cart; | |
| 35 | ||
| 36 | 34 | #define DMA_REG(a) m_dma_regs[a - 0x4300] // regs 0x4300-0x437f |
| 37 | 35 | |
| 38 | 36 | |
| 39 | ||
| 37 | void snes_state::video_start() | |
| 40 | 38 | { |
| 41 | snes_state *state = machine.driver_data<snes_state>(); | |
| 42 | state->m_ppu.ppu_start(machine); | |
| 39 | m_ppu.ppu_start(machine()); | |
| 43 | 40 | } |
| 44 | 41 | |
| 45 | 42 | UINT32 snes_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) |
| r21596 | r21597 | |
|---|---|---|
| 699 | 699 | DECLARE_DEVICE_IMAGE_LOAD_MEMBER(sufami_cart); |
| 700 | 700 | DECLARE_READ8_MEMBER( snes_r_io ); |
| 701 | 701 | DECLARE_WRITE8_MEMBER( snes_w_io ); |
| 702 | virtual void video_start(); | |
| 702 | 703 | }; |
| 703 | 704 | |
| 704 | 705 | /* Special chips, checked at init and used in memory handlers */ |
| r21596 | r21597 | |
| 768 | 769 | |
| 769 | 770 | extern UINT8 *snes_ram; /* Main memory */ |
| 770 | 771 | |
| 771 | extern struct snes_cart_info snes_cart; | |
| 772 | ||
| 773 | /*----------- defined in video/snes.c -----------*/ | |
| 774 | ||
| 775 | extern VIDEO_START( snes ); | |
| 776 | extern SCREEN_UPDATE_RGB32( snes ); | |
| 777 | ||
| 778 | ||
| 779 | 772 | #endif /* _SNES_H_ */ |
| r21596 | r21597 | |
|---|---|---|
| 1217 | 1217 | MCFG_MACHINE_RESET(snes_mess) |
| 1218 | 1218 | |
| 1219 | 1219 | /* video hardware */ |
| 1220 | MCFG_VIDEO_START(snes) | |
| 1221 | ||
| 1222 | 1220 | MCFG_SCREEN_ADD("screen", RASTER) |
| 1223 | 1221 | MCFG_SCREEN_RAW_PARAMS(DOTCLK_NTSC * 2, SNES_HTOTAL * 2, 0, SNES_SCR_WIDTH * 2, SNES_VTOTAL_NTSC, 0, SNES_SCR_HEIGHT_NTSC) |
| 1224 | 1222 | MCFG_SCREEN_UPDATE_DRIVER( snes_state, screen_update ) |
| Previous | 199869 Revisions | Next |