mirror of
https://github.com/holub/mame
synced 2025-04-09 18:17:44 +03:00
srcclean and cleanup
This commit is contained in:
parent
d2d85d3951
commit
7e52678a2c
@ -24171,7 +24171,7 @@ Bombs: An amusing little desktop game.
|
||||
<description>Electronics Principles 3.0</description>
|
||||
<year>1997</year>
|
||||
<publisher>EPT Educational Software</publisher>
|
||||
|
||||
|
||||
<part name="flop1" interface="floppy_3_5">
|
||||
<dataarea name="flop" size="1474560">
|
||||
<rom name="disk1.img" size="1474560" crc="effbf2c7" sha1="3462a6fbc29dd0b5059c58e503cae3b0c2c75169"/>
|
||||
@ -24201,19 +24201,19 @@ Bombs: An amusing little desktop game.
|
||||
<description>HP DeskJet -kirjoitinohjelmisto DeskJet 600- ja 660C -kirjoittimille (Fin)</description>
|
||||
<year>1995</year>
|
||||
<publisher>Hewlett-Packard</publisher>
|
||||
|
||||
|
||||
<part name="flop1" interface="floppy_3_5">
|
||||
<dataarea name="flop" size="1474560">
|
||||
<rom name="c2184-10016.img" size="1474560" crc="601c263d" sha1="d7e8d4892a519aad964dd5f3b08fe73a9ebc066a"/>
|
||||
</dataarea>
|
||||
</part>
|
||||
|
||||
|
||||
<part name="flop2" interface="floppy_3_5">
|
||||
<dataarea name="flop" size="1474560">
|
||||
<rom name="c2184-10017.img" size="1474560" crc="6d69fd64" sha1="a3b11e36a0e5345a50ecebe15f0fa372bb5baf0d"/>
|
||||
</dataarea>
|
||||
</part>
|
||||
|
||||
|
||||
<part name="flop3" interface="floppy_3_5">
|
||||
<dataarea name="flop" size="1474560">
|
||||
<rom name="c2184-10018.img" size="1474560" crc="3e99bc78" sha1="2a9aa6bea9ca7f6197d53aa9c2cf2546c8c2e1ab"/>
|
||||
|
@ -289,9 +289,9 @@ license:CC0-1.0
|
||||
</diskarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
|
||||
<!-- Dance Karaoke Series 26 - not dumped -->
|
||||
|
||||
|
||||
<!-- Dance Karaoke Series 27 - seen but not dumped -->
|
||||
|
||||
<!-- Dance Karaoke Series 28 - not dumped -->
|
||||
@ -301,7 +301,7 @@ license:CC0-1.0
|
||||
<!-- Dance Karaoke Series 30 - not dumped -->
|
||||
|
||||
<!-- Dance Karaoke Series 31 - seen but not dumped -->
|
||||
|
||||
|
||||
<!-- are there discs numbered higher than 31? -->
|
||||
|
||||
<software name="dancebst" supported="no">
|
||||
|
@ -11523,7 +11523,7 @@ license:CC0-1.0
|
||||
<dataarea name="sprites" size="0x2000000">
|
||||
<rom loadflag="load16_byte" name="teot-b3-c1.bin" offset="0x0000000" size="0x1000000" crc="f183c0a2" sha1="d28055f79d56f915a803ab1c1b08f08b3eaaf1fe" />
|
||||
<rom loadflag="load16_byte" name="teot-b3-c2.bin" offset="0x0000001" size="0x1000000" crc="93f47c21" sha1="9bb37e45fac53d6be67f6f6e1c9c662d73f7556e" />
|
||||
</dataarea>
|
||||
</dataarea>
|
||||
</part>
|
||||
</software>
|
||||
|
||||
@ -11638,10 +11638,10 @@ license:CC0-1.0
|
||||
<rom offset="0x000000" size="0x010000" name="dod-m1.bin" crc="fb945087" sha1="a2bae6907bf02c93068f9ee23409506277c8a027" />
|
||||
</dataarea>
|
||||
<dataarea name="ymsnd:adpcma" size="0x1000000">
|
||||
<rom name="dod-v1.bin" offset="0x000000" size="0x400000" crc="8ab79ed9" sha1="8b1d2ade7494a81b9fa79763aaa54bbf7f4cf394" />
|
||||
<rom name="dod-v2.bin" offset="0x400000" size="0x400000" crc="9aae5145" sha1="b218b47eafe8a5d25cbfadbd685de1b291c23af2" />
|
||||
<rom name="dod-v3.bin" offset="0x800000" size="0x400000" crc="9ad3e804" sha1="8f309e64b8582aad0f9f3258dee0d96f2c04f7e4" />
|
||||
<rom name="dod-v4.bin" offset="0xc00000" size="0x400000" crc="9ad3e804" sha1="8f309e64b8582aad0f9f3258dee0d96f2c04f7e4" />
|
||||
<rom name="dod-v1.bin" offset="0x000000" size="0x400000" crc="8ab79ed9" sha1="8b1d2ade7494a81b9fa79763aaa54bbf7f4cf394" />
|
||||
<rom name="dod-v2.bin" offset="0x400000" size="0x400000" crc="9aae5145" sha1="b218b47eafe8a5d25cbfadbd685de1b291c23af2" />
|
||||
<rom name="dod-v3.bin" offset="0x800000" size="0x400000" crc="9ad3e804" sha1="8f309e64b8582aad0f9f3258dee0d96f2c04f7e4" />
|
||||
<rom name="dod-v4.bin" offset="0xc00000" size="0x400000" crc="9ad3e804" sha1="8f309e64b8582aad0f9f3258dee0d96f2c04f7e4" />
|
||||
</dataarea>
|
||||
<dataarea name="sprites" size="0x2800000">
|
||||
<rom loadflag="load16_byte" name="dod-c1.bin" offset="0x000000" size="0x1400000" crc="050ee046" sha1="ca5a02ba92f7bdbedbb7c0c881eb3cf454140918" />
|
||||
|
@ -10,8 +10,8 @@ license:CC0-1.0
|
||||
<year>1982</year>
|
||||
<publisher>Telercas</publisher>
|
||||
<info name="usage" value="W, RUN" />
|
||||
|
||||
<part name="quik" interface="tmc600_quik">
|
||||
|
||||
<part name="quik" interface="tmc600_quik">
|
||||
<dataarea name="quik" size="4672">
|
||||
<rom name="demo.tmc600" size="4672" crc="fce7ad03" sha1="fada958bb9648619eb5ce04dc4c829091e34b665"/>
|
||||
</dataarea>
|
||||
@ -23,8 +23,8 @@ license:CC0-1.0
|
||||
<year>1982</year>
|
||||
<publisher>Telercas</publisher>
|
||||
<info name="usage" value="W, RUN" />
|
||||
|
||||
<part name="quik" interface="tmc600_quik">
|
||||
|
||||
<part name="quik" interface="tmc600_quik">
|
||||
<dataarea name="quik" size="2025">
|
||||
<rom name="demo2.tmc600" size="2025" crc="592e97c7" sha1="8f92f0dd7aee3b3aae56a06a4117796ff4643811"/>
|
||||
</dataarea>
|
||||
@ -36,8 +36,8 @@ license:CC0-1.0
|
||||
<year>1982</year>
|
||||
<publisher>Telercas</publisher>
|
||||
<info name="usage" value="W, RUN" />
|
||||
|
||||
<part name="quik" interface="tmc600_quik">
|
||||
|
||||
<part name="quik" interface="tmc600_quik">
|
||||
<dataarea name="quik" size="817">
|
||||
<rom name="snoopy.tmc600" size="817" crc="884976b0" sha1="0c2dc1a0fef94ac359313414b43a281b909bc7f2"/>
|
||||
</dataarea>
|
||||
|
10
makefile
10
makefile
@ -1631,7 +1631,7 @@ tests: $(REGTESTS)
|
||||
cleansrc:
|
||||
@echo Cleaning up tabs/spaces/end of lines....
|
||||
ifeq (posix,$(SHELLTYPE))
|
||||
$(SILENT) find src \( \
|
||||
$(SILENT)- find src \( \
|
||||
-name \*.c -o -name \*.cpp -o \
|
||||
-name \*.h -o -name \*.hpp -o -name \*.hxx -o \
|
||||
-name \*.ipp -o \
|
||||
@ -1639,10 +1639,10 @@ ifeq (posix,$(SHELLTYPE))
|
||||
-name \*.lay -o \
|
||||
-name \*.lst \
|
||||
\) -print0 | xargs -0 -n 20 ./srcclean >&2
|
||||
$(SILENT) find hash \( -name \*.hsi -o -name \*.xml \) -print0 | xargs -0 -n 20 ./srcclean >&2
|
||||
$(SILENT) find bgfx \( -name \*.json \) -print0 | xargs -0 -n 20 ./srcclean >&2
|
||||
$(SILENT) find plugins \( -name \*.lua -o -name \*.json \) -print0 | xargs -0 -n 20 ./srcclean >&2
|
||||
$(SILENT) find scripts \( -name \*.lua \) -print0 | xargs -0 -n 20 ./srcclean >&2
|
||||
$(SILENT)- find hash \( -name \*.hsi -o -name \*.xml \) -print0 | xargs -0 -n 20 ./srcclean >&2
|
||||
$(SILENT)- find bgfx \( -name \*.json \) -print0 | xargs -0 -n 20 ./srcclean >&2
|
||||
$(SILENT)- find plugins \( -name \*.lua -o -name \*.json \) -print0 | xargs -0 -n 20 ./srcclean >&2
|
||||
$(SILENT)- find scripts \( -name \*.lua \) -print0 | xargs -0 -n 20 ./srcclean >&2
|
||||
else
|
||||
$(shell for /r src %%i in (*.c, *.cpp, *.h, *.hpp, *.hxx, *.ipp, *.mm, *.lay, *.lst) do srcclean %%i >&2 )
|
||||
$(shell for /r hash %%i in (*.hsi, *.xml) do srcclean %%i >&2 )
|
||||
|
@ -61,7 +61,7 @@ void msx_cart_franky_device::device_add_mconfig(machine_config &config)
|
||||
m_vdp->set_is_pal(false);
|
||||
m_vdp->n_int().set(*this, FUNC(msx_cart_franky_device::irq_out));
|
||||
// There is no NMI signal on the cartridge slot, so no way to hook this up
|
||||
// m_vdp->n_nmi().set_inputline(maincpu, INPUT_LINE_NMI);
|
||||
//m_vdp->n_nmi().set_inputline(maincpu, INPUT_LINE_NMI);
|
||||
m_vdp->add_route(ALL_OUTPUTS, "franky", 1.00);
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@ void ata_flash_pccard_device::device_reset()
|
||||
m_cis[8] = 0x01; // Size of Fields Byte (2:TPCC_RFSZ 4:TPCC_RMSZ 2:TPCC_RASZ)
|
||||
m_cis[9] = 0x03; // TPCC_LAST (2:RFU 6:Last Index) (count of 0x1b?)
|
||||
m_cis[10] = 0x00; // TPCC_RADR
|
||||
m_cis[11] = 0x02; // TPCC_RADR
|
||||
m_cis[11] = 0x02; // TPCC_RADR
|
||||
m_cis[12] = 0x0f; // TPCC_RMSK
|
||||
m_cis[13] = 0x21; // CISTPL_FUNCID
|
||||
m_cis[14] = 0x02; // TPL_LINK
|
||||
|
@ -14,18 +14,18 @@
|
||||
namespace {
|
||||
|
||||
ROM_START( teletex800 )
|
||||
ROM_REGION( 0x1000, "z80", 0 )
|
||||
ROM_LOAD( "ix44_ver1.1.u57", 0x0000, 0x1000, CRC(5c11b89c) SHA1(4911332709a8dcda12e72bcdf7a0acd58d65cbfd) )
|
||||
ROM_REGION( 0x1000, "z80", 0 )
|
||||
ROM_LOAD( "ix44_ver1.1.u57", 0x0000, 0x1000, CRC(5c11b89c) SHA1(4911332709a8dcda12e72bcdf7a0acd58d65cbfd) )
|
||||
ROM_END
|
||||
|
||||
static const z80_daisy_config z80_daisy_chain[] =
|
||||
{
|
||||
{ nullptr }
|
||||
{ nullptr }
|
||||
};
|
||||
|
||||
static void printer_devices(device_slot_interface &device)
|
||||
{
|
||||
device.option_add("printer", SERIAL_PRINTER);
|
||||
device.option_add("printer", SERIAL_PRINTER);
|
||||
}
|
||||
|
||||
static INPUT_PORTS_START( teletex800 )
|
||||
@ -34,47 +34,47 @@ INPUT_PORTS_END
|
||||
class teletex_800_device : public device_t, public device_rs232_port_interface
|
||||
{
|
||||
public:
|
||||
teletex_800_device(machine_config const &mconfig, char const *tag, device_t *owner, uint32_t clock) :
|
||||
device_t(mconfig, TELETEX_800, tag, owner, clock),
|
||||
teletex_800_device(machine_config const &mconfig, char const *tag, device_t *owner, uint32_t clock) :
|
||||
device_t(mconfig, TELETEX_800, tag, owner, clock),
|
||||
device_rs232_port_interface(mconfig, *this),
|
||||
m_maincpu(*this, "z80"),
|
||||
m_ctc(*this, "ctc"),
|
||||
m_sio(*this, "sio"),
|
||||
m_acia(*this, "acia"),
|
||||
m_pia(*this, "pia"),
|
||||
m_pia_cp(*this, "pia_cp")
|
||||
m_maincpu(*this, "z80"),
|
||||
m_ctc(*this, "ctc"),
|
||||
m_sio(*this, "sio"),
|
||||
m_acia(*this, "acia"),
|
||||
m_pia(*this, "pia"),
|
||||
m_pia_cp(*this, "pia_cp")
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
virtual const tiny_rom_entry *device_rom_region() const override
|
||||
{
|
||||
return ROM_NAME( teletex800 );
|
||||
}
|
||||
{
|
||||
return ROM_NAME( teletex800 );
|
||||
}
|
||||
|
||||
virtual void device_add_mconfig(machine_config &config) override
|
||||
{
|
||||
// main board
|
||||
Z80(config, m_maincpu, XTAL(4'915'200));
|
||||
m_maincpu->set_daisy_config(z80_daisy_chain);
|
||||
m_maincpu->set_addrmap(AS_PROGRAM, &teletex_800_device::program_map);
|
||||
m_maincpu->set_addrmap(AS_IO, &teletex_800_device::io_map);
|
||||
virtual void device_add_mconfig(machine_config &config) override
|
||||
{
|
||||
// main board
|
||||
Z80(config, m_maincpu, XTAL(4'915'200));
|
||||
m_maincpu->set_daisy_config(z80_daisy_chain);
|
||||
m_maincpu->set_addrmap(AS_PROGRAM, &teletex_800_device::program_map);
|
||||
m_maincpu->set_addrmap(AS_IO, &teletex_800_device::io_map);
|
||||
|
||||
Z80CTC(config, m_ctc, XTAL(4'915'200));
|
||||
Z80SIO(config, m_sio, XTAL(4'915'200));
|
||||
ACIA6850(config, m_acia);
|
||||
PIA6821(config, m_pia);
|
||||
Z80CTC(config, m_ctc, XTAL(4'915'200));
|
||||
Z80SIO(config, m_sio, XTAL(4'915'200));
|
||||
ACIA6850(config, m_acia);
|
||||
PIA6821(config, m_pia);
|
||||
|
||||
RS232_PORT(config, "printer", printer_devices, "printer");
|
||||
RS232_PORT(config, "printer", printer_devices, "printer");
|
||||
|
||||
// control panel
|
||||
PIA6821(config, m_pia_cp);
|
||||
}
|
||||
// control panel
|
||||
PIA6821(config, m_pia_cp);
|
||||
}
|
||||
|
||||
virtual ioport_constructor device_input_ports() const override
|
||||
{
|
||||
return INPUT_PORTS_NAME( teletex800 );
|
||||
}
|
||||
{
|
||||
return INPUT_PORTS_NAME( teletex800 );
|
||||
}
|
||||
|
||||
virtual void device_start() override
|
||||
{
|
||||
@ -82,20 +82,20 @@ protected:
|
||||
|
||||
private:
|
||||
required_device<z80_device> m_maincpu;
|
||||
required_device<z80ctc_device> m_ctc;
|
||||
required_device<z80sio_device> m_sio;
|
||||
required_device<acia6850_device> m_acia;
|
||||
required_device<z80ctc_device> m_ctc;
|
||||
required_device<z80sio_device> m_sio;
|
||||
required_device<acia6850_device> m_acia;
|
||||
required_device<pia6821_device> m_pia;
|
||||
required_device<pia6821_device> m_pia_cp;
|
||||
|
||||
void program_map(address_map &map)
|
||||
{
|
||||
map(0x0000, 0x0fff).rom().region("z80", 0);
|
||||
}
|
||||
void program_map(address_map &map)
|
||||
{
|
||||
map(0x0000, 0x0fff).rom().region("z80", 0);
|
||||
}
|
||||
|
||||
void io_map(address_map &map)
|
||||
{
|
||||
}
|
||||
void io_map(address_map &map)
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
} // anonymous namespace
|
||||
|
@ -297,7 +297,7 @@ u8 h8h_intc_device::isr_r()
|
||||
void h8h_intc_device::isr_w(u8 data)
|
||||
{
|
||||
m_isr &= data; // edge/level
|
||||
// logerror("isr = %02x / %02x\n", data, m_isr);
|
||||
//logerror("isr = %02x / %02x\n", data, m_isr);
|
||||
check_level_irqs(false);
|
||||
update_irq_state();
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ int mipsx_disassembler::get_sh_amount(int shift)
|
||||
}
|
||||
|
||||
static const char *regnames[32] = { "r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12", "r13", "r14", "r15"
|
||||
"r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23", "r24", "r25", "r26", "r27", "r28", "r29", "r30", "r31" };
|
||||
"r16", "r17", "r18", "r19", "r20", "r21", "r22", "r23", "r24", "r25", "r26", "r27", "r28", "r29", "r30", "r31" };
|
||||
|
||||
const char *mipsx_disassembler::get_regname(u8 reg)
|
||||
{
|
||||
|
@ -301,50 +301,50 @@ void sh7042_device::device_add_mconfig(machine_config &config)
|
||||
SH_DMAC_CHANNEL(config, m_dmac3, *this, m_intc);
|
||||
SH_MTU(config, m_mtu, *this, 5);
|
||||
SH_MTU_CHANNEL(config, m_mtu0, *this, 4, 0x60, m_intc, 88,
|
||||
sh_mtu_channel_device::DIV_1,
|
||||
sh_mtu_channel_device::DIV_4,
|
||||
sh_mtu_channel_device::DIV_16,
|
||||
sh_mtu_channel_device::DIV_64,
|
||||
sh_mtu_channel_device::INPUT_A,
|
||||
sh_mtu_channel_device::INPUT_B,
|
||||
sh_mtu_channel_device::INPUT_C,
|
||||
sh_mtu_channel_device::INPUT_D);
|
||||
sh_mtu_channel_device::DIV_1,
|
||||
sh_mtu_channel_device::DIV_4,
|
||||
sh_mtu_channel_device::DIV_16,
|
||||
sh_mtu_channel_device::DIV_64,
|
||||
sh_mtu_channel_device::INPUT_A,
|
||||
sh_mtu_channel_device::INPUT_B,
|
||||
sh_mtu_channel_device::INPUT_C,
|
||||
sh_mtu_channel_device::INPUT_D);
|
||||
SH_MTU_CHANNEL(config, m_mtu1, *this, 2, 0x4c, m_intc, 96,
|
||||
sh_mtu_channel_device::DIV_1,
|
||||
sh_mtu_channel_device::DIV_4,
|
||||
sh_mtu_channel_device::DIV_16,
|
||||
sh_mtu_channel_device::DIV_64,
|
||||
sh_mtu_channel_device::INPUT_A,
|
||||
sh_mtu_channel_device::INPUT_B,
|
||||
sh_mtu_channel_device::DIV_256,
|
||||
sh_mtu_channel_device::CHAIN).set_chain(m_mtu2);
|
||||
sh_mtu_channel_device::DIV_1,
|
||||
sh_mtu_channel_device::DIV_4,
|
||||
sh_mtu_channel_device::DIV_16,
|
||||
sh_mtu_channel_device::DIV_64,
|
||||
sh_mtu_channel_device::INPUT_A,
|
||||
sh_mtu_channel_device::INPUT_B,
|
||||
sh_mtu_channel_device::DIV_256,
|
||||
sh_mtu_channel_device::CHAIN).set_chain(m_mtu2);
|
||||
SH_MTU_CHANNEL(config, m_mtu2, *this, 2, 0x4c, m_intc, 104,
|
||||
sh_mtu_channel_device::DIV_1,
|
||||
sh_mtu_channel_device::DIV_4,
|
||||
sh_mtu_channel_device::DIV_16,
|
||||
sh_mtu_channel_device::DIV_64,
|
||||
sh_mtu_channel_device::INPUT_A,
|
||||
sh_mtu_channel_device::INPUT_B,
|
||||
sh_mtu_channel_device::INPUT_C,
|
||||
sh_mtu_channel_device::DIV_1024);
|
||||
sh_mtu_channel_device::DIV_1,
|
||||
sh_mtu_channel_device::DIV_4,
|
||||
sh_mtu_channel_device::DIV_16,
|
||||
sh_mtu_channel_device::DIV_64,
|
||||
sh_mtu_channel_device::INPUT_A,
|
||||
sh_mtu_channel_device::INPUT_B,
|
||||
sh_mtu_channel_device::INPUT_C,
|
||||
sh_mtu_channel_device::DIV_1024);
|
||||
SH_MTU_CHANNEL(config, m_mtu3, *this, 4, 0x60, m_intc, 112,
|
||||
sh_mtu_channel_device::DIV_1,
|
||||
sh_mtu_channel_device::DIV_4,
|
||||
sh_mtu_channel_device::DIV_16,
|
||||
sh_mtu_channel_device::DIV_64,
|
||||
sh_mtu_channel_device::DIV_256,
|
||||
sh_mtu_channel_device::DIV_1024,
|
||||
sh_mtu_channel_device::INPUT_A,
|
||||
sh_mtu_channel_device::INPUT_B);
|
||||
sh_mtu_channel_device::DIV_1,
|
||||
sh_mtu_channel_device::DIV_4,
|
||||
sh_mtu_channel_device::DIV_16,
|
||||
sh_mtu_channel_device::DIV_64,
|
||||
sh_mtu_channel_device::DIV_256,
|
||||
sh_mtu_channel_device::DIV_1024,
|
||||
sh_mtu_channel_device::INPUT_A,
|
||||
sh_mtu_channel_device::INPUT_B);
|
||||
SH_MTU_CHANNEL(config, m_mtu4, *this, 4, 0x60, m_intc, 120,
|
||||
sh_mtu_channel_device::DIV_1,
|
||||
sh_mtu_channel_device::DIV_4,
|
||||
sh_mtu_channel_device::DIV_16,
|
||||
sh_mtu_channel_device::DIV_64,
|
||||
sh_mtu_channel_device::DIV_256,
|
||||
sh_mtu_channel_device::DIV_1024,
|
||||
sh_mtu_channel_device::INPUT_A,
|
||||
sh_mtu_channel_device::INPUT_B);
|
||||
sh_mtu_channel_device::DIV_1,
|
||||
sh_mtu_channel_device::DIV_4,
|
||||
sh_mtu_channel_device::DIV_16,
|
||||
sh_mtu_channel_device::DIV_64,
|
||||
sh_mtu_channel_device::DIV_256,
|
||||
sh_mtu_channel_device::DIV_1024,
|
||||
sh_mtu_channel_device::INPUT_A,
|
||||
sh_mtu_channel_device::INPUT_B);
|
||||
SH_PORT32(config, m_porta, *this, 0, 0x00000000, 0xff000000);
|
||||
SH_PORT16(config, m_portb, *this, 0, 0x0000, 0xfc00);
|
||||
SH_PORT16(config, m_portc, *this, 1, 0x0000, 0x0000);
|
||||
|
@ -171,7 +171,7 @@ void sh_cmt_device::cor_w(int reg, u16 data, u16 mem_mask)
|
||||
|
||||
void sh_cmt_device::clock_start(int clk)
|
||||
{
|
||||
// logerror("start clock %d %dHz\n", clk, (m_cpu->clock() >> (3 + 2*BIT(m_csr[clk], 0, 2))) / (m_cor[clk] + 1));
|
||||
//logerror("start clock %d %dHz\n", clk, (m_cpu->clock() >> (3 + 2*BIT(m_csr[clk], 0, 2))) / (m_cor[clk] + 1));
|
||||
compute_next_event(clk);
|
||||
}
|
||||
|
||||
|
@ -64,7 +64,7 @@ void sh_intc_device::interrupt_taken(int irqline, int vector)
|
||||
// Don't clear an external interrupt which is level and still active
|
||||
if(vector < 64 || vector >= 72 || BIT(m_icr, 7-(vector & 7)) || !BIT(m_lines, vector & 7))
|
||||
m_pending[vector >> 5] &= ~(1 << (vector & 31));
|
||||
|
||||
|
||||
update_irq();
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@ DEFINE_DEVICE_TYPE(DIMM_SPD, dimm_spd_device, "dimm_spd", "DIMM Serial Presence
|
||||
|
||||
dimm_spd_device::dimm_spd_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) :
|
||||
device_t(mconfig, DIMM_SPD, tag, owner, clock),
|
||||
i2c_hle_interface(mconfig, *this, 0) // address will be overridden by set_address as before
|
||||
i2c_hle_interface(mconfig, *this, 0) // address will be overridden by set_address as before
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -4,16 +4,16 @@
|
||||
I2C HLE mix-in
|
||||
by R. Belmont
|
||||
|
||||
A mix-in to allow devices to speak I2C without reimplementing
|
||||
the protocol themselves.
|
||||
A mix-in to allow devices to speak I2C without reimplementing
|
||||
the protocol themselves.
|
||||
|
||||
If the device returns data over I2C, override read_data.
|
||||
If the device is written data over I2C, override write_data.
|
||||
If you want the mix-in's logging to show your device name, override
|
||||
get_tag() with something that just returns your tag().
|
||||
If the device returns data over I2C, override read_data.
|
||||
If the device is written data over I2C, override write_data.
|
||||
If you want the mix-in's logging to show your device name, override
|
||||
get_tag() with something that just returns your tag().
|
||||
|
||||
This mix-in will auto-increment the address on repeated reads/writes,
|
||||
it's up to your class that consumes this mix-in
|
||||
This mix-in will auto-increment the address on repeated reads/writes,
|
||||
it's up to your class that consumes this mix-in
|
||||
*/
|
||||
|
||||
#include "emu.h"
|
||||
|
@ -203,7 +203,7 @@ void sci4_device::tx_set(int chan, int state)
|
||||
for(u32 i=0; i != 4; i++)
|
||||
if((m_targets & (1<<i)))
|
||||
m_tx[i+3](state);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void sci4_device::fifo_w(int chan, u8 data)
|
||||
|
@ -368,11 +368,11 @@ u8 z80ctc_channel_device::read()
|
||||
if(!m_timer->remaining().is_never())
|
||||
return u8((m_timer->remaining().as_double() / period.as_double()) + 1.0);
|
||||
else
|
||||
{
|
||||
// value read-back is required by x1turbo for YM internal board detection.
|
||||
// cfr. x1turbo40 argus wpiset 0x704,1,rw
|
||||
{
|
||||
// value read-back is required by x1turbo for YM internal board detection.
|
||||
// cfr. x1turbo40 argus wpiset 0x704,1,rw
|
||||
return m_down;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -664,7 +664,7 @@ void okim9810_device::okim_voice::generate_audio(device_rom_interface &rom,
|
||||
if (m_phrase_count > 0)
|
||||
{
|
||||
offs_t startAddr, endAddr;
|
||||
uint8_t startFlags = rom.read_byte(m_phrase_offset++);
|
||||
uint8_t startFlags = rom.read_byte(m_phrase_offset++);
|
||||
m_phrase_count--;
|
||||
if (!BIT(startFlags, 7))
|
||||
{
|
||||
|
@ -669,13 +669,13 @@ std::pair<err_t, std::vector<u8>> impl::file_read(const std::vector<std::string>
|
||||
bool impl::is_valid_short_filename(std::string const &filename)
|
||||
{
|
||||
/*
|
||||
Valid characters in DOS file names:
|
||||
- Upper case letters A-Z
|
||||
- Numbers 0-9
|
||||
- Space (though there is no way to identify a trailing space)
|
||||
- ! # $ % & ( ) - @ ^ _ ` { } ~
|
||||
- Characters 128-255, except e5 (though the code page is indeterminate)
|
||||
We currently do not check for characters 128-255.
|
||||
Valid characters in DOS file names:
|
||||
- Upper case letters A-Z
|
||||
- Numbers 0-9
|
||||
- Space (though there is no way to identify a trailing space)
|
||||
- ! # $ % & ( ) - @ ^ _ ` { } ~
|
||||
- Characters 128-255, except e5 (though the code page is indeterminate)
|
||||
We currently do not check for characters 128-255.
|
||||
*/
|
||||
std::regex filename_regex("([A-Z0-9!#\\$%&\\(\\)\\-@^_`\\{\\}~]{0,8})(\\.([A-Z0-9!#\\$%&\\(\\)\\-@^_`\\{\\}~]{0,3}))?");
|
||||
return std::regex_match(filename, filename_regex);
|
||||
|
@ -1,25 +1,25 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:R. Belmont
|
||||
/*
|
||||
Apple "Valkyrie" - very low-cost video framebuffer
|
||||
Emulation by R. Belmont
|
||||
Apple "Valkyrie" - very low-cost video framebuffer
|
||||
Emulation by R. Belmont
|
||||
|
||||
This was the bonus awfulness in the Quadra 630/LC 580 machines. While the
|
||||
ROM software and MacOS don't support many monitor types, the Linux driver indicates
|
||||
that's more of a software problem.
|
||||
This was the bonus awfulness in the Quadra 630/LC 580 machines. While the
|
||||
ROM software and MacOS don't support many monitor types, the Linux driver indicates
|
||||
that's more of a software problem.
|
||||
|
||||
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/video/fbdev/valkyriefb.c?h=v6.2.10
|
||||
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/drivers/video/fbdev/valkyriefb.c?h=v6.2.10
|
||||
|
||||
Also valkyrie.c in the Marathon Infinity open source release from Bungie. (They use Valkyrie's video upscaler
|
||||
to only have to render 320x240!)
|
||||
Also valkyrie.c in the Marathon Infinity open source release from Bungie. (They use Valkyrie's video upscaler
|
||||
to only have to render 320x240!)
|
||||
|
||||
TODO:
|
||||
- YUV video-in support
|
||||
- Determine if the I2C clock is internal or external
|
||||
TODO:
|
||||
- YUV video-in support
|
||||
- Determine if the I2C clock is internal or external
|
||||
|
||||
Video in buffer 0 is at 0xf9300000
|
||||
Video in buffer 1 is at 0xf9340000
|
||||
Both buffers are 320x240 with a stride of 1024 bytes, data is 16 bits per pixel (YUV?)
|
||||
Video in buffer 0 is at 0xf9300000
|
||||
Video in buffer 1 is at 0xf9340000
|
||||
Both buffers are 320x240 with a stride of 1024 bytes, data is 16 bits per pixel (YUV?)
|
||||
|
||||
*/
|
||||
|
||||
@ -29,7 +29,7 @@
|
||||
#define LOG_MODE (1U << 1)
|
||||
#define LOG_MONSENSE (1U << 2)
|
||||
#define LOG_RAMDAC (1U << 3)
|
||||
#define LOG_CLOCKGEN (1U << 4)
|
||||
#define LOG_CLOCKGEN (1U << 4)
|
||||
|
||||
#define VERBOSE (0)
|
||||
#include "logmacro.h"
|
||||
@ -128,7 +128,7 @@ static INPUT_PORTS_START(monitor_config)
|
||||
PORT_CONFNAME(0x7f, 6, "Monitor type")
|
||||
PORT_CONFSETTING(0x02, u8"Mac RGB Display (12\" 512\u00d7384)") // "Rubik" (modified IIgs AppleColor RGB)
|
||||
PORT_CONFSETTING(0x06, u8"Mac Hi-Res Display (12-14\" 640\u00d7480)") // "High Res" 640x480 @ 67 Hz
|
||||
PORT_CONFSETTING(ext(1, 1, 3), "640x480 VGA") // VGA 640x480 @ 60 Hz
|
||||
PORT_CONFSETTING(ext(1, 1, 3), "640x480 VGA") // VGA 640x480 @ 60 Hz
|
||||
PORT_CONFSETTING(ext(2, 3, 1), "832x624 16\" RGB") // "Goldfish" or "16 inch RGB"
|
||||
|
||||
INPUT_PORTS_END
|
||||
@ -464,7 +464,7 @@ void valkyrie_device::recalc_mode()
|
||||
|
||||
switch (m_video_timing & 0x7f)
|
||||
{
|
||||
case 2: // Rubik 512x384
|
||||
case 2: // Rubik 512x384
|
||||
m_hres = 512;
|
||||
m_vres = 384;
|
||||
m_htotal = 640;
|
||||
|
@ -217,16 +217,16 @@ protected:
|
||||
class atetris_m5205_state : public atetris_mcu_state
|
||||
{
|
||||
public:
|
||||
atetris_m5205_state(const machine_config &mconfig, device_type type, const char *tag) :
|
||||
atetris_mcu_state(mconfig, type, tag),
|
||||
m_msm(*this, "msm")
|
||||
{
|
||||
}
|
||||
atetris_m5205_state(const machine_config &mconfig, device_type type, const char *tag) :
|
||||
atetris_mcu_state(mconfig, type, tag),
|
||||
m_msm(*this, "msm")
|
||||
{
|
||||
}
|
||||
|
||||
void atetb5205(machine_config &config);
|
||||
void atetb5205(machine_config &config);
|
||||
|
||||
private:
|
||||
required_device<msm5205_device> m_msm;
|
||||
required_device<msm5205_device> m_msm;
|
||||
};
|
||||
|
||||
|
||||
@ -920,7 +920,7 @@ The OKI M5205 is on a separate subboard connected on the "ROM B" socket of the m
|
||||
| ________________ __________ |
|
||||
|| 27C512 | |MC14040BCP |
|
||||
|| | ____ _______ |
|
||||
||_______________| 400 Osc |MC1741CP1 |
|
||||
||_______________| 400 Osc |MC1741CP1 |
|
||||
| ________________ __________ |
|
||||
|| 27C512 | |OKI M5205| |
|
||||
|| | |
|
||||
|
@ -1829,7 +1829,7 @@ static INPUT_PORTS_START( jumbogod )
|
||||
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_NAME( "Nissen Kougeki (Atomic Breath) 1" )
|
||||
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON4 ) PORT_NAME( "Nissen Kougeki (Atomic Breath) 2" )
|
||||
PORT_BIT( 0xC0, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||
INPUT_PORTS_END
|
||||
INPUT_PORTS_END
|
||||
|
||||
static INPUT_PORTS_START( ppsatan )
|
||||
PORT_START("SYSTEM") // $200000
|
||||
@ -5574,7 +5574,7 @@ GAME( 1994, pwrinst2j, pwrinst2, pwrinst2, metmqstr, cave_z80_state, init_pwrin
|
||||
GAME( 1994, mazinger, 0, mazinger, cave, cave_z80_state, init_mazinger, ROT90, "Banpresto / Dynamic Pl. Toei Animation", "Mazinger Z (World)", MACHINE_SUPPORTS_SAVE ) // 1994/06/27 08:00
|
||||
GAME( 1994, mazingerj, mazinger, mazinger, cave, cave_z80_state, init_mazinger, ROT90, "Banpresto / Dynamic Pl. Toei Animation", "Mazinger Z (Japan)", MACHINE_SUPPORTS_SAVE ) // 1994/06/27 08:00
|
||||
|
||||
GAME( 1995, jumbogod, 0, jumbogod, jumbogod, cave_state, init_tjumpman, ROT0, "Namco", "Jumbo Godzilla", MACHINE_SUPPORTS_SAVE )
|
||||
GAME( 1995, jumbogod, 0, jumbogod, jumbogod, cave_state, init_tjumpman, ROT0, "Namco", "Jumbo Godzilla", MACHINE_SUPPORTS_SAVE )
|
||||
|
||||
// Version/Date string is stored at 68000 ROM 0x400-0x41f
|
||||
GAME( 1995, donpachi, 0, donpachi, cave, cave_state, init_donpachi, ROT270, "Cave (Atlus license)", "DonPachi (US)", MACHINE_SUPPORTS_SAVE ) // Ver.1.12 1995/05/2x XXXXX
|
||||
|
@ -200,11 +200,11 @@ void m78_state::main_io_map(address_map &map)
|
||||
map(0x8000, 0x8fff).ram().w(FUNC(m78_state::tileram_w<1>)).share(m_tileram[1]);
|
||||
map(0x9000, 0x9fff).ram().w(FUNC(m78_state::attrram_w<1>)).share(m_attrram[1]);
|
||||
map(0xa000, 0xafff).ram().w(FUNC(m78_state::colorram_w<1>)).share(m_colorram[1]);
|
||||
// map(0xb000, 0xbfff).ram(); // vregs, $b000, $b400, $b800, $bc00
|
||||
//map(0xb000, 0xbfff).ram(); // vregs, $b000, $b400, $b800, $bc00
|
||||
map(0xc000, 0xcfff).ram().w(FUNC(m78_state::tileram_w<0>)).share(m_tileram[0]);
|
||||
map(0xd000, 0xdfff).ram().w(FUNC(m78_state::attrram_w<0>)).share(m_attrram[0]);
|
||||
map(0xe000, 0xefff).ram().w(FUNC(m78_state::colorram_w<0>)).share(m_colorram[0]);
|
||||
// map(0xf000, 0xffff).ram(); // layer control at $f000?
|
||||
//map(0xf000, 0xffff).ram(); // layer control at $f000?
|
||||
}
|
||||
|
||||
void m78_state::audio_program_map(address_map &map)
|
||||
|
@ -294,7 +294,7 @@ void midvunit_base_state::tms32031_control_w(offs_t offset, uint32_t data, uint3
|
||||
{
|
||||
COMBINE_DATA(&m_tms32031_control[offset]);
|
||||
|
||||
|
||||
|
||||
if (offset == 0x64)
|
||||
; // ignore changes to the memory control register
|
||||
else if (offset == 0x20 || offset == 0x30)
|
||||
@ -997,7 +997,7 @@ static INPUT_PORTS_START( offroadc )
|
||||
|
||||
// DSW3 at U19
|
||||
PORT_DIPUNUSED_DIPLOC( 0x0100, 0x0100, "SW3:8" ) // Manual states "Switches 6, 7 and 8 are not active. We recommend
|
||||
PORT_DIPUNUSED_DIPLOC( 0x0200, 0x0200, "SW3:7" ) // they be set to the facorty default (OFF) positions."
|
||||
PORT_DIPUNUSED_DIPLOC( 0x0200, 0x0200, "SW3:7" ) // they be set to the facorty default (OFF) positions."
|
||||
PORT_DIPUNUSED_DIPLOC( 0x0400, 0x0400, "SW3:6" )
|
||||
PORT_DIPNAME( 0xf800, 0xf800, DEF_STR( Coinage ) ) PORT_DIPLOCATION("SW3:5,4,3,2,1")
|
||||
PORT_DIPSETTING( 0xf800, "USA 1" )
|
||||
|
@ -414,9 +414,9 @@ uint16_t amerdart_state::amerdart_trackball_r(offs_t offset)
|
||||
m_result = (m_lastresult | 0x00ff);
|
||||
|
||||
m_newx[1] = m_in_xaxis[0]->read(); // Trackball 1 Left - Right
|
||||
m_newy[1] = m_in_yaxis[0]->read(); // Trackball 1 Up - Down
|
||||
m_newy[1] = m_in_yaxis[0]->read(); // Trackball 1 Up - Down
|
||||
m_newx[2] = m_in_xaxis[1]->read(); // Trackball 2 Left - Right
|
||||
m_newy[2] = m_in_yaxis[1]->read(); // Trackball 2 Up - Down
|
||||
m_newy[2] = m_in_yaxis[1]->read(); // Trackball 2 Up - Down
|
||||
|
||||
m_dx[1] = (int8_t)(m_newx[1] - m_oldx[1]);
|
||||
m_dy[1] = (int8_t)(m_newy[1] - m_oldy[1]);
|
||||
@ -881,7 +881,7 @@ ROM_START( amerdart ) // You need to check the sum16 values listed on the labels
|
||||
ROM_LOAD16_BYTE( "ameri corp copyright 1989 u57 6016", 0x080001, 0x10000, CRC(f620f935) SHA1(bf891fce1f04f3ad5b8b72d43d041ceacb0b65bc) ) // Different then set 2 or 3
|
||||
ROM_LOAD16_BYTE( "ameri corp copyright 1989 u58 48af", 0x080000, 0x10000, CRC(f1b3d7c4) SHA1(7b897230d110be7a5eb05eda927d00561ebb9ce3) ) // Different then set 2 or 3
|
||||
|
||||
ROM_REGION( 0x10000, "dsp", 0 ) // TMS32015 code
|
||||
ROM_REGION( 0x10000, "dsp", 0 ) // TMS32015 code
|
||||
ROM_LOAD16_WORD( "tms320e15.bin", 0x0000, 0x2000, CRC(375db4ea) SHA1(11689c89ce62f44f43cb8973b4ec6e6b0024ed14) ) // Passes internal checksum routine
|
||||
|
||||
ROM_REGION( 0x100000, "dspdata", 0 ) // TMS32015 audio sample data
|
||||
@ -916,7 +916,7 @@ ROM_START( amerdart2 ) // You need to check the sum16 values listed on the label
|
||||
ROM_LOAD16_BYTE( "ameri corp copyright 1989 u57 1a0c", 0x080001, 0x10000, CRC(8a70f849) SHA1(dfd4cf90de2ab8cbeff458f0fd20110c1ed009e9) ) // Different then set 1 or 3
|
||||
ROM_LOAD16_BYTE( "ameri corp copyright 1989 u58 0d81", 0x080000, 0x10000, CRC(8bb81975) SHA1(b7666572ab543991c7deaa0ebefb8b4526a7e386) ) // Different then set 1 or 3
|
||||
|
||||
ROM_REGION( 0x10000, "dsp", 0 ) // TMS32015 code
|
||||
ROM_REGION( 0x10000, "dsp", 0 ) // TMS32015 code
|
||||
ROM_LOAD16_WORD( "tms320e15.bin", 0x0000, 0x2000, CRC(375db4ea) SHA1(11689c89ce62f44f43cb8973b4ec6e6b0024ed14) ) // Passes internal checksum routine
|
||||
|
||||
ROM_REGION( 0x100000, "dspdata", 0 ) // TMS32015 audio sample data
|
||||
@ -951,7 +951,7 @@ ROM_START( amerdart3 ) // You need to check the sum16 values listed on the label
|
||||
ROM_LOAD16_BYTE( "ameri corp copyright 1989 u57 4cac", 0x080001, 0x10000, CRC(2d653c7b) SHA1(0feebe6440aabe844049013aa063ed0259b7bec4) ) // Different then set 2 or 3
|
||||
ROM_LOAD16_BYTE( "ameri corp copyright 1989 u58 729e", 0x080000, 0x10000, CRC(8cef479a) SHA1(80002e215416a11ff071523ee67218a1aabe155b) ) // Different then set 2 or 3
|
||||
|
||||
ROM_REGION( 0x10000, "dsp", 0 ) // TMS32015 code
|
||||
ROM_REGION( 0x10000, "dsp", 0 ) // TMS32015 code
|
||||
ROM_LOAD16_WORD( "tms320e15.bin", 0x0000, 0x2000, CRC(375db4ea) SHA1(11689c89ce62f44f43cb8973b4ec6e6b0024ed14) ) // Passes internal checksum routine
|
||||
|
||||
ROM_REGION( 0x100000, "dspdata", 0 ) // TMS32015 audio sample data
|
||||
|
@ -51,8 +51,8 @@ Aliens: Extermination | 2006 | GVRI/O Mini
|
||||
| | | Intel DH61CR |
|
||||
| | +--------------------------+----------------------------
|
||||
| | | Intel DG41TY | 050-0190-01 or 050-0198-01* or 050-0208-01*
|
||||
| | | Intel DG41TX |
|
||||
| | | |
|
||||
| | | Intel DG41TX |
|
||||
| | | |
|
||||
| | +--------------------------+----------------------------
|
||||
| | | Intel DQ45CB | 050-0190-0
|
||||
| | +--------------------------+----------------------------
|
||||
@ -247,7 +247,7 @@ Twisted - Nitro Stunt Racing | 2009 | GVRI/O Mini
|
||||
| | | Intel DG41TX |
|
||||
| | | Intel DQ45CB |
|
||||
-------------------------------------------------+------+-----------------------+--------------------------+----------------------------
|
||||
UltraPin | 2006 | uShock I/O | GA-945GM-S2 | 050-0114-01
|
||||
UltraPin | 2006 | uShock I/O | GA-945GM-S2 | 050-0114-01
|
||||
| | | Gigabyte GA-945GME-DS2 |
|
||||
-------------------------------------------------+------+-----------------------+--------------------------+----------------------------
|
||||
Vortek V3 & gvrSX | ??? | HAPP UGCI | Intel DG41TY | 050-0171-01 & patch disc 050-0191-01
|
||||
|
@ -239,7 +239,7 @@ static NETLIST_START(parata)
|
||||
NET_C(Q2.D, Q3.G)
|
||||
NET_C(Q3.D, I_V5)
|
||||
NET_C(D3.A, Q3.G)
|
||||
NET_C(D3.K, Q3.S)
|
||||
NET_C(D3.K, Q3.S)
|
||||
ALIAS(OUTPUT, Q3.S)
|
||||
|
||||
OPTIMIZE_FRONTIER(Q3.S, RES_K(100), 1)
|
||||
@ -258,12 +258,12 @@ static NETLIST_START(output_filter)
|
||||
ANALOG_INPUT(GND, 0)
|
||||
|
||||
OPAMP(AMP, "OPAMP(TYPE=1 FPF=5 RI=1M RO=50 UGF=1M SLEW=1M VLH=0.5 VLL=0.03 DAB=0.0015)")
|
||||
RES(R1, RES_K(9.1))
|
||||
RES(R2, RES_K(91))
|
||||
RES(R3, RES_K(27))
|
||||
CAP(C1, CAP_U(0.0015))
|
||||
CAP(C2, CAP_P(680))
|
||||
CAP(C3, CAP_P(100))
|
||||
RES(R1, RES_K(9.1))
|
||||
RES(R2, RES_K(91))
|
||||
RES(R3, RES_K(27))
|
||||
CAP(C1, CAP_U(0.0015))
|
||||
CAP(C2, CAP_P(680))
|
||||
CAP(C3, CAP_P(100))
|
||||
|
||||
NET_C(VPLUS, AMP.VCC)
|
||||
NET_C(VMINUS, AMP.GND)
|
||||
|
@ -37,21 +37,21 @@
|
||||
RST6.5 8212 INT
|
||||
RST7.5 DMA EOP
|
||||
|
||||
Models:
|
||||
Models:
|
||||
|
||||
M1: 1x 160KB floppy
|
||||
M2: 2x 160KB floppy
|
||||
M3: 1x 320KB floppy (96 tpi, single sided)
|
||||
M4: 2x 320KB floppy
|
||||
M5: 1x 640KB floppy (96 tpi, double sided)
|
||||
M6: 2x 640KB floppy
|
||||
M7: 1x 640KB floppy + 5MB hard disk
|
||||
M4G: 2x 320KB floppy + GDC
|
||||
M6G: 2x 640KB floppy + GDC
|
||||
M7G: 1x 640KB floppy + 5MB hard disk + GDC
|
||||
M1: 1x 160KB floppy
|
||||
M2: 2x 160KB floppy
|
||||
M3: 1x 320KB floppy (96 tpi, single sided)
|
||||
M4: 2x 320KB floppy
|
||||
M5: 1x 640KB floppy (96 tpi, double sided)
|
||||
M6: 2x 640KB floppy
|
||||
M7: 1x 640KB floppy + 5MB hard disk
|
||||
M4G: 2x 320KB floppy + GDC
|
||||
M6G: 2x 640KB floppy + GDC
|
||||
M7G: 1x 640KB floppy + 5MB hard disk + GDC
|
||||
|
||||
|
||||
./chdman createhd -chs 306,2,32 -ss 256 -o st406.chd
|
||||
./chdman createhd -chs 306,2,32 -ss 256 -o st406.chd
|
||||
|
||||
*/
|
||||
|
||||
@ -59,7 +59,7 @@
|
||||
|
||||
TODO:
|
||||
|
||||
- M7 boot floppy
|
||||
- M7 boot floppy
|
||||
- accurate video timing
|
||||
- PCB layouts
|
||||
- NEC uPD7201 MPSC
|
||||
@ -214,7 +214,7 @@ uint8_t mm1_state::sasi_status_r(offs_t offset)
|
||||
data |= m_sasi->cd_r() << 3;
|
||||
data |= m_sasi->req_r() << 4;
|
||||
data |= m_sasi->io_r() << 5;
|
||||
|
||||
|
||||
//LOG("%s SASI STATUS %02x\n",machine().describe_context(),data);
|
||||
|
||||
return data;
|
||||
@ -271,7 +271,7 @@ uint8_t mm1_state::sasi_ior3_r(offs_t offset)
|
||||
{
|
||||
data = m_fdc->dma_r();
|
||||
}
|
||||
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
@ -298,7 +298,7 @@ void mm1_state::sasi_bsy_w(int state)
|
||||
void mm1_state::sasi_req_w(int state)
|
||||
{
|
||||
if (!state)
|
||||
{
|
||||
{
|
||||
m_sasi->ack_w(0);
|
||||
}
|
||||
|
||||
|
@ -2,32 +2,32 @@
|
||||
// copyright-holders:Curt Coder
|
||||
/*
|
||||
|
||||
Models:
|
||||
Models:
|
||||
|
||||
M13A: Floppy drive 5.25", 320 KB + memory 128 KB
|
||||
M13B: Floppy drive 5.25", 320 KB + memory 256 KB
|
||||
M13C: Floppy drive 5.25", 320 KB + memory 512 KB
|
||||
M13D: Floppy drive 5.25", 320 KB + memory 768 KB
|
||||
M14A: 2 floppy drives 5.25", 320 KB + memory 128 KB
|
||||
M14B: 2 floppy drives 5.25", 320 KB + memory 256 KB
|
||||
M14C: 2 floppy drives 5.25", 320 KB + memory 512 KB
|
||||
M14D: 2 floppy drives 5.25", 320 KB + memory 768 KB
|
||||
M15A: Floppy drive 5.25", 640 KB + memory 128 KB
|
||||
M15B: Floppy drive 5.25", 640 KB + memory 256 KB
|
||||
M15C: Floppy drive 5.25", 640 KB + memory 512 KB
|
||||
M15D: Floppy drive 5.25", 640 KB + memory 768 KB
|
||||
M16A: 2 floppy drives 5.25", 640 KB + memory 128 KB
|
||||
M16B: 2 floppy drives 5.25", 640 KB + memory 256 KB
|
||||
M16C: 2 floppy drives 5.25", 640 KB + memory 512 KB
|
||||
M16D: 2 floppy drives 5.25", 640 KB + memory 768 KB
|
||||
M25B: Floppy drive 5.25", 640 KB + hard disk 5.25" Winchester, 5 MB + memory 256 KB
|
||||
M25C: Floppy drive 5.25", 640 KB + hard disk 5.25" Winchester, 5 MB + memory 512 KB
|
||||
M25D: Floppy drive 5.25", 640 KB + hard disk 5.25" Winchester, 5 MB + memory 768 KB
|
||||
M35B: Floppy drive 5.25", 640 KB + hard disk 5.25" Winchester, 15 MB + memory 256 KB
|
||||
M35C: Floppy drive 5.25", 640 KB + hard disk 5.25" Winchester, 15 MB + memory 512 KB
|
||||
M35D: Floppy drive 5.25", 640 KB + hard disk 5.25" Winchester, 15 MB + memory 768 KB
|
||||
M13A: Floppy drive 5.25", 320 KB + memory 128 KB
|
||||
M13B: Floppy drive 5.25", 320 KB + memory 256 KB
|
||||
M13C: Floppy drive 5.25", 320 KB + memory 512 KB
|
||||
M13D: Floppy drive 5.25", 320 KB + memory 768 KB
|
||||
M14A: 2 floppy drives 5.25", 320 KB + memory 128 KB
|
||||
M14B: 2 floppy drives 5.25", 320 KB + memory 256 KB
|
||||
M14C: 2 floppy drives 5.25", 320 KB + memory 512 KB
|
||||
M14D: 2 floppy drives 5.25", 320 KB + memory 768 KB
|
||||
M15A: Floppy drive 5.25", 640 KB + memory 128 KB
|
||||
M15B: Floppy drive 5.25", 640 KB + memory 256 KB
|
||||
M15C: Floppy drive 5.25", 640 KB + memory 512 KB
|
||||
M15D: Floppy drive 5.25", 640 KB + memory 768 KB
|
||||
M16A: 2 floppy drives 5.25", 640 KB + memory 128 KB
|
||||
M16B: 2 floppy drives 5.25", 640 KB + memory 256 KB
|
||||
M16C: 2 floppy drives 5.25", 640 KB + memory 512 KB
|
||||
M16D: 2 floppy drives 5.25", 640 KB + memory 768 KB
|
||||
M25B: Floppy drive 5.25", 640 KB + hard disk 5.25" Winchester, 5 MB + memory 256 KB
|
||||
M25C: Floppy drive 5.25", 640 KB + hard disk 5.25" Winchester, 5 MB + memory 512 KB
|
||||
M25D: Floppy drive 5.25", 640 KB + hard disk 5.25" Winchester, 5 MB + memory 768 KB
|
||||
M35B: Floppy drive 5.25", 640 KB + hard disk 5.25" Winchester, 15 MB + memory 256 KB
|
||||
M35C: Floppy drive 5.25", 640 KB + hard disk 5.25" Winchester, 15 MB + memory 512 KB
|
||||
M35D: Floppy drive 5.25", 640 KB + hard disk 5.25" Winchester, 15 MB + memory 768 KB
|
||||
|
||||
./chdman createhd -chs 306,2,32 -ss 256 -o st406.chd
|
||||
./chdman createhd -chs 306,2,32 -ss 256 -o st406.chd
|
||||
|
||||
*/
|
||||
|
||||
@ -155,7 +155,7 @@ void mm2_state::mm2(machine_config &config)
|
||||
PIC8259(config, m_pic);
|
||||
|
||||
PIT8253(config, m_pit);
|
||||
|
||||
|
||||
I8274(config, m_mpsc, 16_MHz_XTAL/4);
|
||||
|
||||
X2212(config, m_novram);
|
||||
@ -213,10 +213,10 @@ ROM_START( mm2m35d )
|
||||
|
||||
ROM_REGION( 0x2000, "attr", 0 )
|
||||
ROM_LOAD( "9026a.ic26", 0x0000, 0x2000, CRC(fe1da600) SHA1(3a5512b08d8f7bb5a0ff3f50bcf33de649a0489d) )
|
||||
|
||||
|
||||
ROM_REGION( 0x100, "timing", 0 )
|
||||
ROM_LOAD( "739025b.ic8", 0x000, 0x100, CRC(c538b10a) SHA1(9810732a52ee6b8313d27462b27acc7e4d5badeb) )
|
||||
|
||||
|
||||
ROM_REGION( 0x400, "keyboard", 0 )
|
||||
ROM_LOAD( "keyboard", 0x000, 0x400, NO_DUMP )
|
||||
ROM_END
|
||||
|
@ -25,7 +25,7 @@
|
||||
#include "video/crt9212.h"
|
||||
|
||||
#define I80186_TAG "maincpu"
|
||||
#define UPD765_TAG "upd765"
|
||||
#define UPD765_TAG "upd765"
|
||||
#define SCREEN_TAG "screen"
|
||||
|
||||
class mm2_state : public driver_device
|
||||
|
@ -7346,7 +7346,7 @@ ROM_START( theglobpa )
|
||||
ROM_LOAD( "63s141.1m", 0x0000, 0x0100, CRC(a9cc86bf) SHA1(bbcec0570aeceb582ff8238a4bc8546a23430081) )
|
||||
ROM_LOAD( "63s141.3m", 0x0100, 0x0100, CRC(2ee34ade) SHA1(7cd43283b9648feb9a15466212b7a480fad20a39) ) // Timing - not used
|
||||
|
||||
ROM_REGION( 0x0800, "extra", 0 )
|
||||
ROM_REGION( 0x0800, "extra", 0 )
|
||||
ROM_LOAD( "top-2716.bin", 0x0000, 0x0800, CRC(25e74cd5) SHA1(dcee1fda9abe7fdeac3a87ef7897afda946efcb2) ) // EPROM on a subboard configured to replace a BPROM
|
||||
ROM_END
|
||||
|
||||
|
@ -37,7 +37,7 @@
|
||||
|
||||
The I/O board is connected to the internal COMB port of the Gigabyte motherboard using
|
||||
the COM RS-232 port of the I/O PCB.
|
||||
|
||||
|
||||
**************************************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
Known bugs:
|
||||
* pdrift & clones lock up issues after m68k rewrite, TAS opcode?
|
||||
Perfect quantum or changing IRQ2 timing won't fix it, see MT8783.
|
||||
Perfect quantum or changing IRQ2 timing won't fix it, see MT8783.
|
||||
* pdriftl's comms don't work
|
||||
|
||||
****************************************************************************
|
||||
|
@ -2329,7 +2329,7 @@ ROM_START( downtownp )
|
||||
ROM_LOAD16_BYTE( "ud2-001-000.3c", 0x000000, 0x040000, CRC(f1965260) SHA1(c0560342238d75f9b81ae9f3408cacfbcd331529) ) // 40 pin MASK rom
|
||||
ROM_LOAD16_BYTE( "ud2-001-003.11c", 0x000001, 0x040000, CRC(e7d5fa5f) SHA1(48612514598711aa73bf75243c842f0aca72f3d0) ) // 40 pin MASK rom
|
||||
ROM_LOAD16_BYTE( "ud2_even_v061.9b", 0x080000, 0x010000, CRC(251d6552) SHA1(0f78bf142db826e956f670ba81102804e88fa2ed) ) // handwritten label UD2 EVEN V0.61 2/13
|
||||
ROM_LOAD16_BYTE( "ud2_odd_v061.8b", 0x080001, 0x010000, CRC(6394a7c0) SHA1(9f5099b32b3c3e100441f6c0ccbe88c19b01a9e5) ) // handwritten label UD2 ODD V0.61 2/13
|
||||
ROM_LOAD16_BYTE( "ud2_odd_v061.8b", 0x080001, 0x010000, CRC(6394a7c0) SHA1(9f5099b32b3c3e100441f6c0ccbe88c19b01a9e5) ) // handwritten label UD2 ODD V0.61 2/13
|
||||
|
||||
ROM_REGION( 0x04c000, "sub", 0 ) // 65c02 Code
|
||||
ROM_LOAD( "ud2-002-004.17c", 0x004000, 0x040000, CRC(bbd538b1) SHA1(de4c43bfc4004a14f9f66b5e8ff192b00c45c003) ) // 40 pin MASK rom
|
||||
|
@ -4133,7 +4133,7 @@ ROM_END
|
||||
ROM_START( deerhuntc ) // These rom labels break label conventions but is correct & verified. Version in program code is listed as 0.00
|
||||
ROM_REGION( 0x200000, "maincpu", 0 ) // TMP68301 Code
|
||||
ROM_LOAD16_BYTE( "as_0937_e01.u06", 0x000000, 0x100000, CRC(8d74088e) SHA1(cb11ffaf4c0267cc8cbe01accc3daeed910a3af3) ) // SUM16 = C2CD - same as version dated 2000.5.31?
|
||||
ROM_LOAD16_BYTE( "as_0938_e01.u07", 0x000001, 0x100000, CRC(c7657889) SHA1(4cc707c8abbc0862457375a9a910d3c338859193) ) // SUM16 = 27D7 - same as version dated 2000.5.31?
|
||||
ROM_LOAD16_BYTE( "as_0938_e01.u07", 0x000001, 0x100000, CRC(c7657889) SHA1(4cc707c8abbc0862457375a9a910d3c338859193) ) // SUM16 = 27D7 - same as version dated 2000.5.31?
|
||||
|
||||
ROM_REGION( 0x2000000, "sprites", 0 ) // Sprites
|
||||
ROM_LOAD64_WORD( "as0901m01.u38", 0x0000000, 0x800000, CRC(1d6acf8f) SHA1(6f61fe21bebb7c87e8e6c3ef3ba73b8cf327dde9) )
|
||||
@ -4272,7 +4272,7 @@ ROM_START( trophyht ) // V1.00 Location Test - v: Tue Feb 26 18:18:43 2002 JST-9
|
||||
|
||||
ROM_REGION( 0x2000000, "sprites", 0 ) // Sprites
|
||||
ROM_LOAD( "lh28f016sat.u20", 0x0000000, 0x200000, NO_DUMP ) // None of the 28F016 flash ROMs are dumped
|
||||
ROM_LOAD( "lh28f016sat.u21", 0x0200000, 0x200000, NO_DUMP ) // The correct loading order is unknown
|
||||
ROM_LOAD( "lh28f016sat.u21", 0x0200000, 0x200000, NO_DUMP ) // The correct loading order is unknown
|
||||
ROM_LOAD( "lh28f016sat.u22", 0x0400000, 0x200000, NO_DUMP )
|
||||
ROM_LOAD( "lh28f016sat.u23", 0x0600000, 0x200000, NO_DUMP )
|
||||
ROM_LOAD( "lh28f016sat.u24", 0x0800000, 0x200000, NO_DUMP )
|
||||
|
@ -402,11 +402,11 @@ uint16_t ssv_state::fake_r(offs_t offset) { return m_scroll[offset]; }
|
||||
|
||||
void ssv_state::ssv_map(address_map &map, u32 rom)
|
||||
{
|
||||
map(0x000000, 0x00ffff).ram().share(m_mainram); // RAM
|
||||
map(0x000000, 0x00ffff).ram().share(m_mainram); // RAM
|
||||
map(0x100000, 0x13ffff).ram().share(m_spriteram); // Sprites
|
||||
map(0x140000, 0x15ffff).ram().w(m_palette, FUNC(palette_device::write16)).share("palette"); // Palette
|
||||
map(0x160000, 0x17ffff).ram(); //
|
||||
map(0x1c0000, 0x1c007f).ram().w(FUNC(ssv_state::scroll_w)).share(m_scroll); // Scroll
|
||||
map(0x160000, 0x17ffff).ram(); //
|
||||
map(0x1c0000, 0x1c007f).ram().w(FUNC(ssv_state::scroll_w)).share(m_scroll); // Scroll
|
||||
map(0x1c0000, 0x1c0001).r(FUNC(ssv_state::vblank_r)); // Vblank?
|
||||
map(0x210002, 0x210003).portr("DSW1");
|
||||
map(0x210004, 0x210005).portr("DSW2");
|
||||
@ -417,9 +417,9 @@ void ssv_state::ssv_map(address_map &map, u32 rom)
|
||||
map(0x210010, 0x210011).nopw();
|
||||
map(0x230000, 0x230071).writeonly().share(m_irq_vectors); // IRQ Vec
|
||||
map(0x240000, 0x240071).w(FUNC(ssv_state::irq_ack_w)); // IRQ Ack
|
||||
map(0x260000, 0x260001).w(FUNC(ssv_state::irq_enable_w)); // IRQ En
|
||||
map(0x300000, 0x30007f).rw(m_ensoniq, FUNC(es5506_device::read), FUNC(es5506_device::write)).umask16(0x00ff); // Sound
|
||||
map(rom, 0xffffff).rom().region("maincpu", 0); // ROM
|
||||
map(0x260000, 0x260001).w(FUNC(ssv_state::irq_enable_w)); // IRQ En
|
||||
map(0x300000, 0x30007f).rw(m_ensoniq, FUNC(es5506_device::read), FUNC(es5506_device::write)).umask16(0x00ff); // Sound
|
||||
map(rom, 0xffffff).rom().region("maincpu", 0); // ROM
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
@ -3416,7 +3416,7 @@ ROM_START( janjans2 )
|
||||
ROM_LOAD16_BYTE( "jan2-proh.u27", 0x200001, 0x080000, CRC(fcd5da62) SHA1(e0243e41e4ec25e82b0316f1189ed069c369e7b1) )
|
||||
ROM_RELOAD( 0x300001, 0x080000)
|
||||
|
||||
ROM_REGION( 0x2000000, "sprites", 0 )
|
||||
ROM_REGION( 0x2000000, "sprites", 0 )
|
||||
ROM_LOAD( "jan2-a0.u13", 0x0000000, 0x400000, CRC(37869bea) SHA1(6259e8584775ca702ef4e9e460c6d874980ffecb) )
|
||||
ROM_LOAD( "jan2-a1.u14", 0x0400000, 0x400000, CRC(8189e74f) SHA1(ea083a7ef0858dac59e14a77f10a9900b20447f3) )
|
||||
|
||||
@ -3528,7 +3528,7 @@ ROM_START( keithlcy )
|
||||
ROM_LOAD16_BYTE( "kl-p0l.u26", 0x100000, 0x080000, CRC(d7b177fb) SHA1(2a3533b952a7b2404720916662743c144e870c0b) )
|
||||
ROM_LOAD16_BYTE( "kl-p0h.u27", 0x100001, 0x080000, CRC(9de7add4) SHA1(16f4405b12734cb6a83cff8be21d03bb3c2e2266) )
|
||||
|
||||
ROM_REGION( 0x800000, "sprites", 0 )
|
||||
ROM_REGION( 0x800000, "sprites", 0 )
|
||||
ROM_LOAD( "vg002-01.u13", 0x000000, 0x200000, CRC(b44d85b2) SHA1(cf78d46f9f2594a23af08a898afbf5dd609abcec) )
|
||||
ROM_LOAD( "vg002-02.u16", 0x200000, 0x200000, CRC(aa05fd14) SHA1(9144e9668788fcd45bd6c8464f9b4f865397f783) )
|
||||
ROM_LOAD( "vg002-03.u21", 0x400000, 0x200000, CRC(299a8a7d) SHA1(b24d8ffba01d345f48f47f92e58e9b2a9ec62526) )
|
||||
@ -3657,7 +3657,7 @@ ROM_START( meosism )
|
||||
ROM_LOAD16_BYTE( "s15-2-2.u47", 0x000000, 0x080000, CRC(2ab0373f) SHA1(826aec3b9698ec5db5d7a72c3a24b1ef779fb227) )
|
||||
ROM_LOAD16_BYTE( "s15-2-1.u46", 0x000001, 0x080000, CRC(a4bce148) SHA1(17ec4d91e215bd38258329b1a71e7f135c5733ad) )
|
||||
|
||||
ROM_REGION( 0x800000, "sprites", 0 )
|
||||
ROM_REGION( 0x800000, "sprites", 0 )
|
||||
ROM_LOAD( "s15-1-7.u7", 0x000000, 0x200000, CRC(ec5023cb) SHA1(3406f5143a40c8dcd2d45b44ea91c737810ab05b) )
|
||||
ROM_LOAD( "s15-1-8.u6", 0x200000, 0x200000, CRC(f04b0836) SHA1(83678427cd0ed0d68ff770baa2693226b391f6c8) )
|
||||
ROM_LOAD( "s15-1-5.u9", 0x400000, 0x200000, CRC(c0414b97) SHA1(3ca8423e04f606981d158065e38431f2509e1daa) )
|
||||
@ -3706,7 +3706,7 @@ ROM_START( mslider )
|
||||
ROM_LOAD16_BYTE( "ms-pl.bin", 0x000000, 0x080000, CRC(70b2a05d) SHA1(387cf67e3e505c4cc1b5cd0b6c9fb3bc27d07e24) )
|
||||
ROM_LOAD16_BYTE( "ms-ph.bin", 0x000001, 0x080000, CRC(34a64e9f) SHA1(acf3d8490f3ec99b6171e71328a991fcc9c5a8b1) )
|
||||
|
||||
ROM_REGION( 0xa00000, "sprites", ROMREGION_ERASE00 )
|
||||
ROM_REGION( 0xa00000, "sprites", ROMREGION_ERASE00 )
|
||||
ROM_LOAD( "ms-a0.bin", 0x000000, 0x200000, CRC(7ed38ccc) SHA1(9c584a5f6b3aad8646d155a56e4070cfed4af540) )
|
||||
ROM_LOAD( "ms-a1.bin", 0x200000, 0x080000, CRC(83f5995f) SHA1(33ae99a96702d4aba422eaf454b86c96aaf88426) )
|
||||
|
||||
|
@ -299,44 +299,44 @@ void st0016_cpu_device::vregs_w(offs_t offset, u8 data)
|
||||
|
||||
I/O ports:
|
||||
|
||||
$60 \
|
||||
$61 - H sync start?
|
||||
$62 \
|
||||
$63 - H visible start?
|
||||
$64 \
|
||||
$65 - H visible end >> 1?
|
||||
$66 \
|
||||
$67 - H total
|
||||
$68 \
|
||||
$69 - V sync start?
|
||||
$6a \
|
||||
$6b - V visible start?
|
||||
$6c \
|
||||
$6d - V visible end?
|
||||
$6e \
|
||||
$6f - V total
|
||||
$60 \
|
||||
$61 - H sync start?
|
||||
$62 \
|
||||
$63 - H visible start?
|
||||
$64 \
|
||||
$65 - H visible end >> 1?
|
||||
$66 \
|
||||
$67 - H total
|
||||
$68 \
|
||||
$69 - V sync start?
|
||||
$6a \
|
||||
$6b - V visible start?
|
||||
$6c \
|
||||
$6d - V visible end?
|
||||
$6e \
|
||||
$6f - V total
|
||||
|
||||
$74 x--- ---- global flip screen
|
||||
-xx- ---- individual flip screen x/y
|
||||
i.e. Mayjinsen sets 0x80, other ST0016 games 0x60.
|
||||
TODO: Might also be paired with $70 & $75 (setted up by Mayjinsen).
|
||||
$74 x--- ---- global flip screen
|
||||
-xx- ---- individual flip screen x/y
|
||||
i.e. Mayjinsen sets 0x80, other ST0016 games 0x60.
|
||||
TODO: Might also be paired with $70 & $75 (setted up by Mayjinsen).
|
||||
|
||||
$a0 \
|
||||
$a1 - source address >> 1
|
||||
$a2 /
|
||||
$a0 \
|
||||
$a1 - source address >> 1
|
||||
$a2 /
|
||||
|
||||
$a3 \
|
||||
$a4 - destination address >> 1 (inside character ram)
|
||||
$a5 /
|
||||
$a3 \
|
||||
$a4 - destination address >> 1 (inside character ram)
|
||||
$a5 /
|
||||
|
||||
$a6 \
|
||||
&a7 - (length inbytes - 1 ) >> 1
|
||||
$a6 \
|
||||
&a7 - (length inbytes - 1 ) >> 1
|
||||
|
||||
$a8 - 76543210
|
||||
??faaaaa
|
||||
$a8 - 76543210
|
||||
??faaaaa
|
||||
|
||||
a - most sign. bits of length
|
||||
f - DMA start latch
|
||||
a - most sign. bits of length
|
||||
f - DMA start latch
|
||||
|
||||
*/
|
||||
|
||||
|
@ -100,13 +100,13 @@ Notes:
|
||||
|
||||
TODO
|
||||
|
||||
- screen update is too fast
|
||||
- cursor on text should blink as dark blue
|
||||
- PRWNOISE and PRBEEP return wrong values
|
||||
- CDP1869 white noise
|
||||
- screen update is too fast
|
||||
- cursor on text should blink as dark blue
|
||||
- PRWNOISE and PRBEEP return wrong values
|
||||
- CDP1869 white noise
|
||||
- connect expansion bus
|
||||
- series I ROMs
|
||||
- DOS ROMs
|
||||
- series I ROMs
|
||||
- DOS ROMs
|
||||
|
||||
*/
|
||||
|
||||
@ -184,7 +184,7 @@ QUICKLOAD_LOAD_MEMBER(tmc600_state::quickload_cb)
|
||||
image.fseek(0x5, SEEK_SET);
|
||||
image.fread(program.get_write_ptr(0x6181), 4); // DEFUS and EOP
|
||||
image.fread(program.get_write_ptr(0x6192), 4); // STRING and ARRAY
|
||||
|
||||
|
||||
image.fseek(0x9, SEEK_SET);
|
||||
image.fread(program.get_write_ptr(0x6199), 2); // EOD
|
||||
|
||||
|
@ -1637,7 +1637,7 @@ void xavix_hikara_state::machine_reset()
|
||||
for (int j = 0; j < 5; j++)
|
||||
{
|
||||
constexpr u8 searchfor[5] = { 0x29, 0x80, 0xd0, 0x14, 0xad };
|
||||
|
||||
|
||||
if (ROM[i + j] == searchfor[j])
|
||||
matchcount++;
|
||||
}
|
||||
|
@ -2242,7 +2242,7 @@ ROM_START( spikes91 )
|
||||
ROM_LOAD( "13.ic120", 0x80000, 0x40000, CRC(89213a8c) SHA1(8524d5c14669d9b03f1fe050c4318d4111bc8ef7) )
|
||||
ROM_LOAD( "14.ic121", 0xc0000, 0x40000, CRC(468cbf5b) SHA1(60fbc2771e40f8de51a51891b8ddcc14e2b1e52c) )
|
||||
|
||||
ROM_REGION16_BE( 0x020000, "sprlookuprom", 0 ) // lookup tables for the sprites
|
||||
ROM_REGION16_BE( 0x020000, "sprlookuprom", 0 ) // lookup tables for the sprites
|
||||
ROM_LOAD16_BYTE( "10.ic104", 0x00000, 0x10000, CRC(769ade77) SHA1(9cb581d02592c69f37d4b5a902d3515f40915ec4) )
|
||||
ROM_LOAD16_BYTE( "9.ic103", 0x00001, 0x10000, CRC(201cb748) SHA1(f78d384e4e9c5996a278f76fb4d5f28812a27de5) )
|
||||
|
||||
@ -2271,7 +2271,7 @@ ROM_START( spikes91b ) // todo, check how this differs, only 1 of the 68k pair a
|
||||
ROM_LOAD( "13.ic120", 0x80000, 0x40000, CRC(89213a8c) SHA1(8524d5c14669d9b03f1fe050c4318d4111bc8ef7) )
|
||||
ROM_LOAD( "14.ic121", 0xc0000, 0x40000, CRC(468cbf5b) SHA1(60fbc2771e40f8de51a51891b8ddcc14e2b1e52c) )
|
||||
|
||||
ROM_REGION16_BE( 0x020000, "sprlookuprom", 0 ) // lookup tables for the sprites
|
||||
ROM_REGION16_BE( 0x020000, "sprlookuprom", 0 ) // lookup tables for the sprites
|
||||
ROM_LOAD16_BYTE( "10.ic104", 0x00000, 0x8000, CRC(b6fe4e57) SHA1(6b62936ff9d0f39fd02c3db488d53bc035c2272d) ) // sldh
|
||||
ROM_LOAD16_BYTE( "9.ic103", 0x00001, 0x8000, CRC(5479ed35) SHA1(ca26289318352901841fcdf26d9b43e797ac39b6) ) // sldh
|
||||
|
||||
|
@ -82,7 +82,7 @@ protected:
|
||||
required_device<gfxdecode_device> m_gfxdecode;
|
||||
required_device<palette_device> m_palette;
|
||||
optional_device_array<vsystem_spr2_device, 2> m_spr_old;
|
||||
|
||||
|
||||
// memory pointers
|
||||
optional_shared_ptr_array<uint16_t, 2> m_vram;
|
||||
optional_shared_ptr<uint16_t> m_rasterram;
|
||||
|
@ -35,7 +35,7 @@ namespace {
|
||||
|
||||
static INPUT_PORTS_START( mu500 )
|
||||
PORT_START("SWS0")
|
||||
PORT_BIT(0x03, IP_ACTIVE_LOW, IPT_UNUSED)
|
||||
PORT_BIT(0x03, IP_ACTIVE_LOW, IPT_UNUSED)
|
||||
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Strings")
|
||||
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Bass")
|
||||
PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Guitar")
|
||||
@ -44,7 +44,7 @@ static INPUT_PORTS_START( mu500 )
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Piano")
|
||||
|
||||
PORT_START("SWS1")
|
||||
PORT_BIT(0x03, IP_ACTIVE_LOW, IPT_UNUSED)
|
||||
PORT_BIT(0x03, IP_ACTIVE_LOW, IPT_UNUSED)
|
||||
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Synth pad")
|
||||
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Synth lead")
|
||||
PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Pipe")
|
||||
@ -53,7 +53,7 @@ static INPUT_PORTS_START( mu500 )
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Ensemble")
|
||||
|
||||
PORT_START("SWS2")
|
||||
PORT_BIT(0x03, IP_ACTIVE_LOW, IPT_UNUSED)
|
||||
PORT_BIT(0x03, IP_ACTIVE_LOW, IPT_UNUSED)
|
||||
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Drum")
|
||||
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Model excl.")
|
||||
PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("SFX")
|
||||
@ -62,7 +62,7 @@ static INPUT_PORTS_START( mu500 )
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Synth effects")
|
||||
|
||||
PORT_START("SWS3")
|
||||
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_UNUSED)
|
||||
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_UNUSED)
|
||||
PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Part +") PORT_CODE(KEYCODE_CLOSEBRACE)
|
||||
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Part -") PORT_CODE(KEYCODE_OPENBRACE)
|
||||
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Mute/Solo") PORT_CODE(KEYCODE_S)
|
||||
@ -72,7 +72,7 @@ static INPUT_PORTS_START( mu500 )
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Play") PORT_CODE(KEYCODE_A)
|
||||
|
||||
PORT_START("SWS4")
|
||||
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_UNUSED)
|
||||
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_UNUSED)
|
||||
PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Value +") PORT_CODE(KEYCODE_EQUALS)
|
||||
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Value -") PORT_CODE(KEYCODE_MINUS)
|
||||
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Exit") PORT_CODE(KEYCODE_BACKSPACE)
|
||||
@ -82,7 +82,7 @@ static INPUT_PORTS_START( mu500 )
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Seq") PORT_CODE(KEYCODE_Q)
|
||||
|
||||
PORT_START("SWS5")
|
||||
PORT_BIT(0x1f, IP_ACTIVE_LOW, IPT_UNUSED)
|
||||
PORT_BIT(0x1f, IP_ACTIVE_LOW, IPT_UNUSED)
|
||||
PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Audition") PORT_CODE(KEYCODE_Z)
|
||||
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Select") PORT_CODE(KEYCODE_X)
|
||||
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_OTHER) PORT_NAME("Sampling/Mode") PORT_CODE(KEYCODE_M)
|
||||
|
@ -16,20 +16,22 @@
|
||||
#include "screen.h"
|
||||
#include "speaker.h"
|
||||
|
||||
namespace {
|
||||
|
||||
class psr540_state : public driver_device {
|
||||
public:
|
||||
psr540_state(const machine_config &mconfig, device_type type, const char *tag)
|
||||
: driver_device(mconfig, type, tag),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_swx00(*this, "swx00"),
|
||||
m_lcdc(*this, "ks0066"),
|
||||
m_floppy(*this, "fdc:0"),
|
||||
m_fdc(*this, "fdc"),
|
||||
m_nvram(*this, "ram"),
|
||||
m_inputs(*this, "B%u", 1U),
|
||||
m_outputs(*this, "%02d.%x.%x", 0U, 0U, 0U),
|
||||
m_sustain(*this, "SUSTAIN"),
|
||||
m_pitch_bend(*this, "PITCH_BEND")
|
||||
psr540_state(const machine_config &mconfig, device_type type, const char *tag) :
|
||||
driver_device(mconfig, type, tag),
|
||||
m_maincpu(*this, "maincpu"),
|
||||
m_swx00(*this, "swx00"),
|
||||
m_lcdc(*this, "ks0066"),
|
||||
m_floppy(*this, "fdc:0"),
|
||||
m_fdc(*this, "fdc"),
|
||||
m_nvram(*this, "ram"),
|
||||
m_inputs(*this, "B%u", 1U),
|
||||
m_outputs(*this, "%02d.%x.%x", 0U, 0U, 0U),
|
||||
m_sustain(*this, "SUSTAIN"),
|
||||
m_pitch_bend(*this, "PITCH_BEND")
|
||||
{ }
|
||||
|
||||
void psr540(machine_config &config);
|
||||
@ -82,7 +84,7 @@ void psr540_state::render_w(int state)
|
||||
void psr540_state::machine_start()
|
||||
{
|
||||
m_outputs.resolve();
|
||||
|
||||
|
||||
save_item(NAME(m_pe));
|
||||
save_item(NAME(m_led));
|
||||
save_item(NAME(m_scan));
|
||||
@ -136,7 +138,7 @@ void psr540_state::psr540(machine_config &config)
|
||||
m_lcdc->set_lcd_size(2, 40);
|
||||
|
||||
HD63266F(config, m_fdc, 16_MHz_XTAL);
|
||||
// m_fdc->drq_wr_callback().set([this](int state){ fdc_drq = state; maincpu->set_input_line(Z180_INPUT_LINE_DREQ0, state); });
|
||||
//m_fdc->drq_wr_callback().set([this](int state){ fdc_drq = state; maincpu->set_input_line(Z180_INPUT_LINE_DREQ0, state); });
|
||||
m_fdc->set_ready_line_connected(false);
|
||||
m_fdc->set_select_lines_connected(false);
|
||||
m_fdc->inp_rd_callback().set([this](){ return m_floppy->get_device()->dskchg_r(); });
|
||||
@ -194,7 +196,7 @@ u8 psr540_state::pf_r()
|
||||
void psr540_state::pe_w(u16 data)
|
||||
{
|
||||
m_pe = data;
|
||||
// logerror("pe lcd_rs=%x lcd_en=%x rdens=%d ldcic=%d fdcic=%d (%s)\n", BIT(m_pe, 11), BIT(m_pe, 9), BIT(m_pe, 8), BIT(m_pe, 4), BIT(m_pe, 3), machine().describe_context());
|
||||
//logerror("pe lcd_rs=%x lcd_en=%x rdens=%d ldcic=%d fdcic=%d (%s)\n", BIT(m_pe, 11), BIT(m_pe, 9), BIT(m_pe, 8), BIT(m_pe, 4), BIT(m_pe, 3), machine().describe_context());
|
||||
m_lcdc->rs_w(BIT(m_pe, 11));
|
||||
m_lcdc->e_w(BIT(m_pe, 9));
|
||||
m_fdc->rate_w(!BIT(m_pe, 8));
|
||||
@ -360,4 +362,6 @@ ROM_START( psr540 )
|
||||
ROM_LOAD("psr540-lcd.svg", 0, 634772, CRC(606d85ab) SHA1(6eff1f028c531cdcd070b21949e4624af0a586a1))
|
||||
ROM_END
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
SYST( 1999, psr540, 0, 0, psr540, psr540, psr540_state, empty_init, "Yamaha", "PSR540", MACHINE_IS_SKELETON )
|
||||
|
Loading…
Reference in New Issue
Block a user