srcclean in preparation for MAME 0.259 release freeze.

This commit is contained in:
Vas Crabb 2024-08-25 03:02:05 +10:00
parent 23e9abc97c
commit 617d79b2a1
13 changed files with 102 additions and 102 deletions

View File

@ -199,7 +199,7 @@ license:CC0-1.0
</dataarea> </dataarea>
</part> </part>
</software> </software>
<software name="smartguid4" supported="no"> <software name="smartguid4" supported="no">
<description>FUN-damentals Series - Smart Guide to 4rd Grade (UK)</description> <description>FUN-damentals Series - Smart Guide to 4rd Grade (UK)</description>
<year>2002</year> <year>2002</year>
@ -212,7 +212,7 @@ license:CC0-1.0
<rom name="500-00534.u1" size="0x400000" crc="0944792f" sha1="f013394ebddb6d89c2feeb3d645c170e2d7be746" /> <rom name="500-00534.u1" size="0x400000" crc="0944792f" sha1="f013394ebddb6d89c2feeb3d645c170e2d7be746" />
</dataarea> </dataarea>
</part> </part>
</software> </software>
<software name="smartguid5" supported="no"> <software name="smartguid5" supported="no">
<description>FUN-damentals Series - Smart Guide to 5th Grade (UK)</description> <description>FUN-damentals Series - Smart Guide to 5th Grade (UK)</description>
@ -1149,7 +1149,7 @@ license:CC0-1.0
</dataarea> </dataarea>
</part> </part>
</software> </software>
<software name="goochoco" supported="no"> <software name="goochoco" supported="no">
<description>Okaasan to Issho: Goo Choco Lantan: Spoo no Fushigi na Oto no Daibouken! (Japan)</description> <description>Okaasan to Issho: Goo Choco Lantan: Spoo no Fushigi na Oto no Daibouken! (Japan)</description>
<year>2002</year> <year>2002</year>
@ -1161,7 +1161,7 @@ license:CC0-1.0
<rom name="9p4-0113a.u1" size="0x200000" crc="04c4174a" sha1="c9e4a1f22a69f7d60e1d1b11bca8338546e52271" /> <rom name="9p4-0113a.u1" size="0x200000" crc="04c4174a" sha1="c9e4a1f22a69f7d60e1d1b11bca8338546e52271" />
</dataarea> </dataarea>
</part> </part>
</software> </software>
<software name="kumpoohj" supported="no"> <software name="kumpoohj" supported="no">
<description>Kuma no Pooh-san Hachimitsu no tsubo ga ippai Pooh-san to kazu·katachi (Japan)</description> <description>Kuma no Pooh-san Hachimitsu no tsubo ga ippai Pooh-san to kazu·katachi (Japan)</description>
@ -1179,7 +1179,7 @@ license:CC0-1.0
<software name="dis1bf" supported="no"> <software name="dis1bf" supported="no">
<description>Disney's World of English 1: Birthday Fun (Japan)</description> <description>Disney's World of English 1: Birthday Fun (Japan)</description>
<year>200?</year> <year>200?</year>
<publisher>LeapFrog / Disney</publisher> <publisher>LeapFrog / Disney</publisher>
<info name="serial" value="500-10047"/> <info name="serial" value="500-10047"/>
<part name="cart" interface="leapfrog_leappad_cart"> <part name="cart" interface="leapfrog_leappad_cart">
<dataarea name="rom" size="0x800000"> <dataarea name="rom" size="0x800000">

View File

@ -262,7 +262,7 @@ int z80dma_device::z80daisy_irq_ack()
else else
{ {
LOGINT("z80dma_irq_ack: failed to find an interrupt to ack!\n"); LOGINT("z80dma_irq_ack: failed to find an interrupt to ack!\n");
return 0; return 0;
} }
} }

View File

@ -143,21 +143,21 @@ private:
u16 m_err_addr2; u16 m_err_addr2;
enum : u16 { enum : u16 {
INVALID_INSN = 0x0001, // Invalid Instruction INVALID_INSN = 0x0001, // Invalid Instruction
END_OF_STACK = 0x0008, // End of Stack Warning END_OF_STACK = 0x0008, // End of Stack Warning
SYS_W_VIOLATION = 0x0010, // System write Violation SYS_W_VIOLATION = 0x0010, // System write Violation
USER_W_VIOLATION = 0x0080, // User Mode Write Violation USER_W_VIOLATION = 0x0080, // User Mode Write Violation
IOP_W_VIOLATION = 0x0400, // I/O Processor Write Violation IOP_W_VIOLATION = 0x0400, // I/O Processor Write Violation
USER_ACC_VIOLATION = 0x0800, // User Mode Access Violation USER_ACC_VIOLATION = 0x0800, // User Mode Access Violation
}; };
u16 m_violation; u16 m_violation;
enum { enum {
IOP_W = 11, // Allow I/O Processor Write IOP_W = 11, // Allow I/O Processor Write
SYS_W = 12, // Allow System Write SYS_W = 12, // Allow System Write
STACK_BOUND = 13, // Stack Boundary Page STACK_BOUND = 13, // Stack Boundary Page
USER_ACC = 14, // Allow User Access USER_ACC = 14, // Allow User Access
USER_W = 15, // Allow User Write USER_W = 15, // Allow User Write
}; };
u16 m_map_ram[256]; u16 m_map_ram[256];
}; };
@ -499,17 +499,17 @@ void altos586_state::iop_io(address_map &map)
{ {
map.global_mask(0xff); map.global_mask(0xff);
map(0x00, 0x00).w(FUNC(altos586_state::hiaddr_w)); // 0x00 Address Latch map(0x00, 0x00).w(FUNC(altos586_state::hiaddr_w)); // 0x00 Address Latch
map(0x20, 0x23).rw("iop_pit0", FUNC(pit8254_device::read), FUNC(pit8254_device::write)); // 0x20 PIT 0 map(0x20, 0x23).rw("iop_pit0", FUNC(pit8254_device::read), FUNC(pit8254_device::write)); // 0x20 PIT 0
map(0x24, 0x27).rw("iop_pit1", FUNC(pit8254_device::read), FUNC(pit8254_device::write)); // 0x24 PIT 1 map(0x24, 0x27).rw("iop_pit1", FUNC(pit8254_device::read), FUNC(pit8254_device::write)); // 0x24 PIT 1
map(0x28, 0x2b).rw("iop_sio0", FUNC(z80sio_device::ba_cd_r), FUNC(z80sio_device::ba_cd_w)); // 0x28 SIO 0 map(0x28, 0x2b).rw("iop_sio0", FUNC(z80sio_device::ba_cd_r), FUNC(z80sio_device::ba_cd_w)); // 0x28 SIO 0
map(0x2c, 0x2f).rw("iop_sio1", FUNC(z80sio_device::ba_cd_r), FUNC(z80sio_device::ba_cd_w)); // 0x2C SIO 1 map(0x2c, 0x2f).rw("iop_sio1", FUNC(z80sio_device::ba_cd_r), FUNC(z80sio_device::ba_cd_w)); // 0x2C SIO 1
map(0x30, 0x33).rw("iop_sio2", FUNC(z80sio_device::ba_cd_r), FUNC(z80sio_device::ba_cd_w)); // 0x30 SIO 2 map(0x30, 0x33).rw("iop_sio2", FUNC(z80sio_device::ba_cd_r), FUNC(z80sio_device::ba_cd_w)); // 0x30 SIO 2
map(0x34, 0x37).rw("iop_pio", FUNC(z80pio_device::read_alt), FUNC(z80pio_device::write_alt)); // 0x34 PIO map(0x34, 0x37).rw("iop_pio", FUNC(z80pio_device::read_alt), FUNC(z80pio_device::write_alt)); // 0x34 PIO
map(0x38, 0x3b).rw(m_fdc, FUNC(fd1797_device::read), FUNC(fd1797_device::write)); // 0x38 FDC map(0x38, 0x3b).rw(m_fdc, FUNC(fd1797_device::read), FUNC(fd1797_device::write)); // 0x38 FDC
map(0x3c, 0x3f).rw("iop_dma", FUNC(z80dma_device::read), FUNC(z80dma_device::write)); // 0x3C DMA map(0x3c, 0x3f).rw("iop_dma", FUNC(z80dma_device::read), FUNC(z80dma_device::write)); // 0x3C DMA
map(0x40, 0x40).noprw(); // 0x40 DMA - Clear carrier sense and parity error bit map(0x40, 0x40).noprw(); // 0x40 DMA - Clear carrier sense and parity error bit
map(0x80, 0x9f).rw("iop_rtc", FUNC(mm58167_device::read), FUNC(mm58167_device::write)); // 0x80 RTC - Counter - thousandths of seconds map(0x80, 0x9f).rw("iop_rtc", FUNC(mm58167_device::read), FUNC(mm58167_device::write)); // 0x80 RTC - Counter - thousandths of seconds
// 0x60 586T Generate MULTIBUS interrupt // 0x60 586T Generate MULTIBUS interrupt
} }

View File

@ -29,13 +29,13 @@
[2] Preliminary 8600 User Manual [2] Preliminary 8600 User Manual
Section 7. System Specs. Section 7. System Specs.
4.5. Rigid Disk Controllers and Interface 4.5. Rigid Disk Controllers and Interface
Specification Revision 4.2, May 27, 1982, Page 52-62 Specification Revision 4.2, May 27, 1982, Page 52-62
[3] Preliminary 8600 User Manual [3] Preliminary 8600 User Manual
Section 7. System Specs. Section 7. System Specs.
A. Rigid Disk Controller Documentation A. Rigid Disk Controller Documentation
Specification Revision 4.2, May 27, 1982, Page 95-108 Specification Revision 4.2, May 27, 1982, Page 95-108
Note: The Altos 8600 manuals [2] and [3] describe a controller Note: The Altos 8600 manuals [2] and [3] describe a controller
wired differently (the 8089 seems to be in local mode, not remote), wired differently (the 8089 seems to be in local mode, not remote),
@ -369,13 +369,13 @@ void altos586_hdc_device::attn_w(uint16_t data)
void altos586_hdc_device::device_start() void altos586_hdc_device::device_start()
{ {
save_item(NAME(m_status)); save_item(NAME(m_status));
save_item(NAME(m_seek_status)); save_item(NAME(m_seek_status));
save_item(NAME(m_cyl_latch)); save_item(NAME(m_cyl_latch));
save_item(NAME(m_cyl[0])); save_item(NAME(m_cyl[0]));
save_item(NAME(m_cyl[1])); save_item(NAME(m_cyl[1]));
save_pointer(NAME(m_sector), std::size(m_sector)); save_pointer(NAME(m_sector), std::size(m_sector));
save_item(NAME(m_secoffset)); save_item(NAME(m_secoffset));
save_item(NAME(m_drive)); save_item(NAME(m_drive));
save_item(NAME(m_head)); save_item(NAME(m_head));
} }

View File

@ -246,7 +246,7 @@ public:
void tvboy(machine_config &config); void tvboy(machine_config &config);
void tvboyn(machine_config &config); void tvboyn(machine_config &config);
protected: protected:
virtual void machine_start() override; virtual void machine_start() override;
virtual void machine_reset() override; virtual void machine_reset() override;

View File

@ -624,7 +624,7 @@ ROM_END
ROM_START( dokodemo ) ROM_START( dokodemo )
ROM_REGION32_LE( 0x1000000, "maincpu", 0 ) // BIOS code ROM_REGION32_LE( 0x1000000, "maincpu", 0 ) // BIOS code
ROM_LOAD32_WORD( "ic30", 0x000000, 0x400000, BAD_DUMP CRC(74687757) SHA1(96b6e3725bcf16e92c6966f9b9ce93cfdd7ba641) ) // needs verification if this game really use same boot ROMs as pingu/gekimaka ROM_LOAD32_WORD( "ic30", 0x000000, 0x400000, BAD_DUMP CRC(74687757) SHA1(96b6e3725bcf16e92c6966f9b9ce93cfdd7ba641) ) // needs verification if this game really use same boot ROMs as pingu/gekimaka
ROM_LOAD32_WORD( "ic33", 0x000002, 0x400000, BAD_DUMP CRC(ba2e6716) SHA1(49c5abb9d96e3f4a78ed4dced7a9f052a96b186d) ) // ROM_LOAD32_WORD( "ic33", 0x000002, 0x400000, BAD_DUMP CRC(ba2e6716) SHA1(49c5abb9d96e3f4a78ed4dced7a9f052a96b186d) ) //
ROM_REGION( 0x800100, "ymz770_flash1", ROMREGION_ERASEFF ) //sound samples flash rom, not really needed, programmed by boot loader ROM_REGION( 0x800100, "ymz770_flash1", ROMREGION_ERASEFF ) //sound samples flash rom, not really needed, programmed by boot loader
ROM_LOAD16_WORD_SWAP( "flash1", 0x000000, 0x800000, BAD_DUMP CRC(dda4879f) SHA1(4aa06247ca674e86be6c111db7f6abf1ed6e121d) ) ROM_LOAD16_WORD_SWAP( "flash1", 0x000000, 0x800000, BAD_DUMP CRC(dda4879f) SHA1(4aa06247ca674e86be6c111db7f6abf1ed6e121d) )
@ -673,7 +673,7 @@ ROM_END
ROM_START( wontame ) ROM_START( wontame )
ROM_REGION32_LE( 0x1000000, "maincpu", 0 ) // BIOS code ROM_REGION32_LE( 0x1000000, "maincpu", 0 ) // BIOS code
ROM_LOAD32_WORD( "ic30", 0x000000, 0x400000, BAD_DUMP CRC(74687757) SHA1(96b6e3725bcf16e92c6966f9b9ce93cfdd7ba641) ) // needs verification if this game really use same boot ROMs as pingu/gekimaka ROM_LOAD32_WORD( "ic30", 0x000000, 0x400000, BAD_DUMP CRC(74687757) SHA1(96b6e3725bcf16e92c6966f9b9ce93cfdd7ba641) ) // needs verification if this game really use same boot ROMs as pingu/gekimaka
ROM_LOAD32_WORD( "ic33", 0x000002, 0x400000, BAD_DUMP CRC(ba2e6716) SHA1(49c5abb9d96e3f4a78ed4dced7a9f052a96b186d) ) // ROM_LOAD32_WORD( "ic33", 0x000002, 0x400000, BAD_DUMP CRC(ba2e6716) SHA1(49c5abb9d96e3f4a78ed4dced7a9f052a96b186d) ) //
ROM_REGION( 0x800100, "ymz770_flash1", ROMREGION_ERASEFF ) ROM_REGION( 0x800100, "ymz770_flash1", ROMREGION_ERASEFF )
ROM_LOAD16_WORD_SWAP( "flash1", 0x000000, 0x800000, BAD_DUMP CRC(056e982e) SHA1(4b29218b00d7023c0b748aae13752f0c12539750) ) ROM_LOAD16_WORD_SWAP( "flash1", 0x000000, 0x800000, BAD_DUMP CRC(056e982e) SHA1(4b29218b00d7023c0b748aae13752f0c12539750) )

View File

@ -1325,7 +1325,7 @@ ROM_END
/* /*
Football Power has a small PCB inside the ball controller, very similar to the one found on Football Power has a small PCB inside the ball controller, very similar to the one found on
Gaelco Football, with two accelerometers and a PIC. Gaelco Football, with two accelerometers and a PIC.
_________________ _________________
| ______ | | ______ |
_| / / | _| / / |

View File

@ -73,16 +73,16 @@ address lines), and then reading it from the 051962.
180c-1833: A y scroll 180c-1833: A y scroll
1a00-1bff: A x scroll 1a00-1bff: A x scroll
1c00 : Maps the three 8kB RAM chips to memory addresses. 1c00 : Maps the three 8kB RAM chips to memory addresses.
------xx select the configuration from this table ------xx select the configuration from this table
RAM0 RAM1 RAM2 RAM0 RAM1 RAM2
00 A~B 6~7 8~9 Reset state 00 A~B 6~7 8~9 Reset state
01 8~9 4~5 6~7 01 8~9 4~5 6~7
10 6~7 2~3 4~5 10 6~7 2~3 4~5
11 4~5 0~1 2~3 TMNT setting 11 4~5 0~1 2~3 TMNT setting
---xxx-- affects how RAMs are accessed ---xxx-- affects how RAMs are accessed
-x------ -x------
0 = replace bits 5:4 of color attribute by bits 1:0 0 = replace bits 5:4 of color attribute by bits 1:0
1 = do not alter color attribute (gradius3,xmen) 1 = do not alter color attribute (gradius3,xmen)
1c80 : row/column scroll control 1c80 : row/column scroll control
------xx layer A row scroll ------xx layer A row scroll
00 = disabled 00 = disabled

View File

@ -6,15 +6,15 @@ license:CC0-1.0
<!-- define elements --> <!-- define elements -->
<element name="vector_art"> <element name="vector_art">
<image><data><![CDATA[ <image><data><![CDATA[
<svg width="1280" height="640" viewBox="0 0 338.6 169.3"> <svg width="1280" height="640" viewBox="0 0 338.6 169.3">
<g transform="translate(47.95,-15.32)"> <g transform="translate(47.95,-15.32)">
<path style="stroke:#222;stroke-width:0.2;" d="m 189.36,21.12 v 5.13 m 0.69,-5.17 v 5.20 M 51.92,21.12 v 5.13 m 0.69,-5.17 v 5.20 m 125.41,-2.17 -0.03,2.19 h 1.67 l -0.66,-2.18 -0.97,-0 z M 69.13,165.59 c -0.21,1.74 -0.34,3.5 -0.38,5.26 0.036,1.76 0.16,3.51 0.38,5.26 H 172.72 c 0.21,-1.74 0.34,-3.5 0.38,-5.26 -0,-1.76 -0.09,-3.51 -0.27,-5.26 h -41.75 c -3.15,2.10 -6.85,3.23 -10.63,3.23 -3.78,-0 -7.48,-1.13 -10.63,-3.23 z M 290.58,26.85 C 258.15,24.17 225.69,21.81 193.14,21.16 H 49.61 c -32.55,0.44 -65,3.19 -97.44,5.7 m 0,101.11 H 290.58 m -83.17,0.03 -7.89,-96.95 c -0.21,-2.62 -2.11,-4.74 -4.74,-4.74 H 47.6 c -2.62,0 -4.54,2.1 -4.74,4.74 l -7.1,96.95" /> <path style="stroke:#222;stroke-width:0.2;" d="m 189.36,21.12 v 5.13 m 0.69,-5.17 v 5.20 M 51.92,21.12 v 5.13 m 0.69,-5.17 v 5.20 m 125.41,-2.17 -0.03,2.19 h 1.67 l -0.66,-2.18 -0.97,-0 z M 69.13,165.59 c -0.21,1.74 -0.34,3.5 -0.38,5.26 0.036,1.76 0.16,3.51 0.38,5.26 H 172.72 c 0.21,-1.74 0.34,-3.5 0.38,-5.26 -0,-1.76 -0.09,-3.51 -0.27,-5.26 h -41.75 c -3.15,2.10 -6.85,3.23 -10.63,3.23 -3.78,-0 -7.48,-1.13 -10.63,-3.23 z M 290.58,26.85 C 258.15,24.17 225.69,21.81 193.14,21.16 H 49.61 c -32.55,0.44 -65,3.19 -97.44,5.7 m 0,101.11 H 290.58 m -83.17,0.03 -7.89,-96.95 c -0.21,-2.62 -2.11,-4.74 -4.74,-4.74 H 47.6 c -2.62,0 -4.54,2.1 -4.74,4.74 l -7.1,96.95" />
<path style="fill:#cba47d" d="m 184,28 v 0.6 h -3 v 0.46 h 5.43 v -0.3 l -1.82,-0.73 z M -32.27,74.75 c -0.1,0 -0.09,0.06 -0.09,0.13 v 1.92 c 0,0 -0.05,0 -0.09,0 -0.29,-0.02 -0.61,0.2 -0.64,0.5 -0.03,0.24 0.22,0.44 0.45,0.41 0.29,-0.03 0.5,-0.32 0.46,-0.61 v -1.52 c 0.02,-0.02 0.06,0.03 0.08,0.03 0.23,0.14 0.43,0.36 0.45,0.65 0.02,0.22 -0.05,0.44 -0.13,0.64 0.25,-0.31 0.33,-0.76 0.16,-1.13 -0.09,-0.21 -0.29,-0.34 -0.4,-0.54 a 1.08,1.08 0 0 1 -0.16,-0.44 c -0.02,-0.03 -0.06,-0.04 -0.09,-0.04 z m 54.37,105 0.97,2.56 1.07,-2.6 z m 44.4,0 0.97,2.56 1.07,-2.56 z m 54.5,0 0.97,2.6 1.1,-2.6 z" /> <path style="fill:#cba47d" d="m 184,28 v 0.6 h -3 v 0.46 h 5.43 v -0.3 l -1.82,-0.73 z M -32.27,74.75 c -0.1,0 -0.09,0.06 -0.09,0.13 v 1.92 c 0,0 -0.05,0 -0.09,0 -0.29,-0.02 -0.61,0.2 -0.64,0.5 -0.03,0.24 0.22,0.44 0.45,0.41 0.29,-0.03 0.5,-0.32 0.46,-0.61 v -1.52 c 0.02,-0.02 0.06,0.03 0.08,0.03 0.23,0.14 0.43,0.36 0.45,0.65 0.02,0.22 -0.05,0.44 -0.13,0.64 0.25,-0.31 0.33,-0.76 0.16,-1.13 -0.09,-0.21 -0.29,-0.34 -0.4,-0.54 a 1.08,1.08 0 0 1 -0.16,-0.44 c -0.02,-0.03 -0.06,-0.04 -0.09,-0.04 z m 54.37,105 0.97,2.56 1.07,-2.6 z m 44.4,0 0.97,2.56 1.07,-2.56 z m 54.5,0 0.97,2.6 1.1,-2.6 z" />
</g></svg> </g></svg>
]]></data></image> ]]></data></image>
</element> </element>
<element name="red_led" defstate="0"> <element name="red_led" defstate="0">
<disk state="1"> <disk state="1">
@ -407,7 +407,7 @@ license:CC0-1.0
<element name="msp_bank" ref="dark_grey_pill_button" inputtag="CPL_SEG3" inputmask="0x02"><bounds x="111" y="247" width="37" height="21"/></element> <element name="msp_bank" ref="dark_grey_pill_button" inputtag="CPL_SEG3" inputmask="0x02"><bounds x="111" y="247" width="37" height="21"/></element>
<element name="msp_menu" ref="dark_grey_pill_button" inputtag="CPL_SEG3" inputmask="0x04"><bounds x="184" y="247" width="37" height="21"/></element> <element name="msp_menu" ref="dark_grey_pill_button" inputtag="CPL_SEG3" inputmask="0x04"><bounds x="184" y="247" width="37" height="21"/></element>
<element name="msp_stop_record" ref="dark_grey_pill_button" inputtag="CPL_SEG3" inputmask="0x08"><bounds x="260" y="247" width="37" height="21"/></element> <element name="msp_stop_record" ref="dark_grey_pill_button" inputtag="CPL_SEG3" inputmask="0x08"><bounds x="260" y="247" width="37" height="21"/></element>
<element name="CPL_24" ref="green_led"><!-- MSP: MENU --><bounds x="200" y="236" width="5" height="5"/></element> <element name="CPL_24" ref="green_led"><!-- MSP: MENU --><bounds x="200" y="236" width="5" height="5"/></element>

View File

@ -2,7 +2,7 @@
// copyright-holders:Felipe Sanches // copyright-holders:Felipe Sanches
/****************************************************************************** /******************************************************************************
Technics SX-KN5000 music keyboard driver Technics SX-KN5000 music keyboard driver
******************************************************************************/ ******************************************************************************/
@ -18,15 +18,15 @@
class mn89304_vga_device : public svga_device class mn89304_vga_device : public svga_device
{ {
public: public:
// construction/destruction // construction/destruction
mn89304_vga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); mn89304_vga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
protected: protected:
virtual void device_reset() override; virtual void device_reset() override;
virtual void palette_update() override; virtual void palette_update() override;
virtual void recompute_params() override; virtual void recompute_params() override;
virtual uint16_t offset() override; virtual uint16_t offset() override;
}; };
DEFINE_DEVICE_TYPE(MN89304_VGA, mn89304_vga_device, "mn89304_vga", "MN89304 VGA") DEFINE_DEVICE_TYPE(MN89304_VGA, mn89304_vga_device, "mn89304_vga", "MN89304 VGA")
@ -35,51 +35,51 @@ DEFINE_DEVICE_TYPE(MN89304_VGA, mn89304_vga_device, "mn89304_vga", "MN89304 VGA"
mn89304_vga_device::mn89304_vga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) mn89304_vga_device::mn89304_vga_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
: svga_device(mconfig, MN89304_VGA, tag, owner, clock) : svga_device(mconfig, MN89304_VGA, tag, owner, clock)
{ {
// ... // ...
} }
void mn89304_vga_device::device_reset() void mn89304_vga_device::device_reset()
{ {
svga_device::device_reset(); svga_device::device_reset();
svga.rgb8_en = 1; svga.rgb8_en = 1;
} }
// sets up mode 0, by default it will throw 155 Hz, assume divided by 3 // sets up mode 0, by default it will throw 155 Hz, assume divided by 3
void mn89304_vga_device::recompute_params() void mn89304_vga_device::recompute_params()
{ {
u8 xtal_select = (vga.miscellaneous_output & 0x0c) >> 2; u8 xtal_select = (vga.miscellaneous_output & 0x0c) >> 2;
int xtal; int xtal;
switch(xtal_select & 3) switch(xtal_select & 3)
{ {
case 0: xtal = XTAL(25'174'800).value() / 3; break; case 0: xtal = XTAL(25'174'800).value() / 3; break;
case 1: xtal = XTAL(28'636'363).value() / 3; break; case 1: xtal = XTAL(28'636'363).value() / 3; break;
case 2: case 2:
default: default:
throw emu_fatalerror("MN89304: setup ext. clock select"); throw emu_fatalerror("MN89304: setup ext. clock select");
} }
recompute_params_clock(1, xtal); recompute_params_clock(1, xtal);
} }
void mn89304_vga_device::palette_update() void mn89304_vga_device::palette_update()
{ {
// 4bpp RAMDAC // 4bpp RAMDAC
for (int i = 0; i < 256; i++) for (int i = 0; i < 256; i++)
{ {
set_pen_color( set_pen_color(
i, i,
pal4bit(vga.dac.color[3*(i & vga.dac.mask) + 0]), pal4bit(vga.dac.color[3*(i & vga.dac.mask) + 0]),
pal4bit(vga.dac.color[3*(i & vga.dac.mask) + 1]), pal4bit(vga.dac.color[3*(i & vga.dac.mask) + 1]),
pal4bit(vga.dac.color[3*(i & vga.dac.mask) + 2]) pal4bit(vga.dac.color[3*(i & vga.dac.mask) + 2])
); );
} }
} }
uint16_t mn89304_vga_device::offset() uint16_t mn89304_vga_device::offset()
{ {
return svga_device::offset() << 3; return svga_device::offset() << 3;
} }
@ -152,7 +152,7 @@ void kn5000_state::maincpu_mem(address_map &map)
map(0x300000, 0x3fffff).rom().region("custom_data", 0); // 8MBit FLASH ROM @ IC19 (CS5) map(0x300000, 0x3fffff).rom().region("custom_data", 0); // 8MBit FLASH ROM @ IC19 (CS5)
map(0x400000, 0x7fffff).rom().region("rhythm_data", 0); // 32MBit ROM @ IC14 (A22=1 and CS5) map(0x400000, 0x7fffff).rom().region("rhythm_data", 0); // 32MBit ROM @ IC14 (A22=1 and CS5)
map(0x800000, 0x82ffff).rom().region("subprogram", 0); // not sure yet in which chip this is stored, but I suspect it should be IC19 map(0x800000, 0x82ffff).rom().region("subprogram", 0); // not sure yet in which chip this is stored, but I suspect it should be IC19
// map(0xc00000, 0xdfffff).mirror(0x200000).rom().region("table_data", 0); //2 * 8MBit ROMs @ IC1, IC3 (CS2) // map(0xc00000, 0xdfffff).mirror(0x200000).rom().region("table_data", 0); //2 * 8MBit ROMs @ IC1, IC3 (CS2)
map(0xe00000, 0xffffff).mask(0x1fffff).rom().region("program", 0); //2 * 8MBit FLASH ROMs @ IC4, IC6 map(0xe00000, 0xffffff).mask(0x1fffff).rom().region("program", 0); //2 * 8MBit FLASH ROMs @ IC4, IC6
} }
@ -686,10 +686,10 @@ void kn5000_state::kn5000(machine_config &config)
// bit 6 = (input) COM.MAC // bit 6 = (input) COM.MAC
// bit 7 = (input) COM.MIDI // bit 7 = (input) COM.MIDI
// TODO: m_maincpu->portz_read().set([this] { // TODO: m_maincpu->portz_read().set([this] {
// TODO: return ioport("COM_SELECT")->read() | (m_sstat << 2); // TODO: return ioport("COM_SELECT")->read() | (m_sstat << 2);
// TODO: }); // TODO: });
// TODO: m_maincpu->portz_write().set([this] (u8 data) { // TODO: m_maincpu->portz_write().set([this] (u8 data) {
// TODO: m_mstat = data & 3; // TODO: m_mstat = data & 3;
// TODO: }); // TODO: });
@ -718,10 +718,10 @@ void kn5000_state::kn5000(machine_config &config)
// bit 3 (not used) // bit 3 (not used)
// bit 4 = (input) MSTAT1 // bit 4 = (input) MSTAT1
// TODO: m_subcpu->portd_read().set([this] { // TODO: m_subcpu->portd_read().set([this] {
// TODO: return (BIT(m_mstat, 0) << 2) | (BIT(m_mstat, 1) << 4); // TODO: return (BIT(m_mstat, 0) << 2) | (BIT(m_mstat, 1) << 4);
// TODO: }); // TODO: });
// TODO: m_subcpu->portd_write().set([this] (u8 data) { // TODO: m_subcpu->portd_write().set([this] (u8 data) {
// TODO: m_sstat = data & 3; // TODO: m_sstat = data & 3;
// TODO: }); // TODO: });

View File

@ -277,7 +277,7 @@ void tsconf_state::tsconf_draw_gfx(bitmap_rgb32 &bitmap, const rectangle &clipre
rgb_t pen = m_palette->pen_color(pal_offset | (pix >> 4)); rgb_t pen = m_palette->pen_color(pal_offset | (pix >> 4));
if (pen != transparent) if (pen != transparent)
{ {
*bm = pen; *bm = pen;
} }
bm++; bm++;
if (width != 1) if (width != 1)

View File

@ -1,7 +1,7 @@
// license:BSD-3-Clause // license:BSD-3-Clause
// copyright-holders:David Haywood // copyright-holders:David Haywood
// The Zevio SoC was developed by Koto Laboratory, the same company behind the Wonderswan // The Zevio SoC was developed by Koto Laboratory, the same company behind the Wonderswan
#include "emu.h" #include "emu.h"
@ -104,7 +104,7 @@ ROM_START( dbzonep )
// original dump had the first 0x100 bytes repeated again at the end, why? // original dump had the first 0x100 bytes repeated again at the end, why?
ROM_REGION( 0x800, "eeprom", ROMREGION_ERASEFF ) ROM_REGION( 0x800, "eeprom", ROMREGION_ERASEFF )
ROM_LOAD( "s24cs16a.u6", 0x000000, 0x800, CRC(a1724ea8) SHA1(93a6f73e30f47b6a0c83f62dfd9d8236473518a8) ) ROM_LOAD( "s24cs16a.u6", 0x000000, 0x800, CRC(a1724ea8) SHA1(93a6f73e30f47b6a0c83f62dfd9d8236473518a8) )
ROM_END ROM_END
} // anonymous namespace } // anonymous namespace

View File

@ -3,8 +3,8 @@
/* /*
GPL16250* games using SPI Flash + RAM configuration GPL16250* games using SPI Flash + RAM configuration
*part number could be different for these, they've only *part number could be different for these, they've only
been seen as globtops been seen as globtops
*/ */
#include "emu.h" #include "emu.h"