(MESS) Added skeleton for the C64/128 version of the Star NL-10 printer interface cartridge. [Curt Coder]

This commit is contained in:
Curt Coder 2013-08-06 20:25:40 +00:00
parent 29cce1d069
commit e9ec79734d
6 changed files with 161 additions and 0 deletions

2
.gitattributes vendored
View File

@ -7261,6 +7261,8 @@ src/mess/machine/c64/xl80.c svneol=native#text/plain
src/mess/machine/c64/xl80.h svneol=native#text/plain src/mess/machine/c64/xl80.h svneol=native#text/plain
src/mess/machine/c64/zaxxon.c svneol=native#text/plain src/mess/machine/c64/zaxxon.c svneol=native#text/plain
src/mess/machine/c64/zaxxon.h svneol=native#text/plain src/mess/machine/c64/zaxxon.h svneol=native#text/plain
src/mess/machine/c64_nl10.c svneol=native#text/plain
src/mess/machine/c64_nl10.h svneol=native#text/plain
src/mess/machine/c65.c svneol=native#text/plain src/mess/machine/c65.c svneol=native#text/plain
src/mess/machine/c8280.c svneol=native#text/plain src/mess/machine/c8280.c svneol=native#text/plain
src/mess/machine/c8280.h svneol=native#text/plain src/mess/machine/c8280.h svneol=native#text/plain

103
src/mess/machine/c64_nl10.c Normal file
View File

@ -0,0 +1,103 @@
/**********************************************************************
Star NL-10 Printer Interface Cartridge emulation
Copyright MESS Team.
Visit http://mamedev.org for licensing and usage restrictions.
**********************************************************************/
#include "c64_nl10.h"
//**************************************************************************
// DEVICE DEFINITIONS
//**************************************************************************
const device_type C64_NL10_INTERFACE = &device_creator<c64_nl10_interface_device>;
//-------------------------------------------------
// ROM( c64_nl10_interface )
//-------------------------------------------------
ROM_START( c64_nl10_interface )
ROM_REGION( 0x8000, "rom", 0 )
ROM_LOAD( "nlc 1.5.ic2", 0x0000, 0x8000, CRC(748840b6) SHA1(5b3b9e8a93d5d77a49160b3d0c2489ba7be99c9a) )
ROM_END
//-------------------------------------------------
// rom_region - device-specific ROM region
//-------------------------------------------------
const rom_entry *c64_nl10_interface_device::device_rom_region() const
{
return ROM_NAME( c64_nl10_interface );
}
//**************************************************************************
// LIVE DEVICE
//**************************************************************************
//-------------------------------------------------
// c64_nl10_interface_device - constructor
//-------------------------------------------------
c64_nl10_interface_device::c64_nl10_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
: device_t(mconfig, C64_NL10_INTERFACE, "Star NL-10 C64 Interface Cartridge", tag, owner, clock, "c64_nl10", __FILE__),
device_cbm_iec_interface(mconfig, *this)
{
}
//-------------------------------------------------
// device_start - device-specific startup
//-------------------------------------------------
void c64_nl10_interface_device::device_start()
{
}
//-------------------------------------------------
// device_reset - device-specific reset
//-------------------------------------------------
void c64_nl10_interface_device::device_reset()
{
}
//-------------------------------------------------
// cbm_iec_atn -
//-------------------------------------------------
void c64_nl10_interface_device::cbm_iec_atn(int state)
{
}
//-------------------------------------------------
// cbm_iec_data -
//-------------------------------------------------
void c64_nl10_interface_device::cbm_iec_data(int state)
{
}
//-------------------------------------------------
// cbm_iec_reset -
//-------------------------------------------------
void c64_nl10_interface_device::cbm_iec_reset(int state)
{
if (!state)
{
device_reset();
}
}

View File

@ -0,0 +1,53 @@
/**********************************************************************
Star NL-10 Printer Interface Cartridge emulation
Copyright MESS Team.
Visit http://mamedev.org for licensing and usage restrictions.
**********************************************************************/
#pragma once
#ifndef __C64_NL10_INTERFACE__
#define __C64_NL10_INTERFACE__
#include "emu.h"
#include "machine/cbmiec.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> c64_nl10_interface_device
class c64_nl10_interface_device : public device_t,
public device_cbm_iec_interface
{
public:
// construction/destruction
c64_nl10_interface_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
// optional information overrides
virtual const rom_entry *device_rom_region() const;
protected:
// device-level overrides
virtual void device_start();
virtual void device_reset();
// device_cbm_iec_interface overrides
void cbm_iec_atn(int state);
void cbm_iec_data(int state);
void cbm_iec_reset(int state);
};
// device type definition
extern const device_type C64_NL10_INTERFACE;
#endif

View File

@ -1064,6 +1064,7 @@ SLOT_INTERFACE_START( cbm_iec_devices )
SLOT_INTERFACE("minichief", MINI_CHIEF) SLOT_INTERFACE("minichief", MINI_CHIEF)
SLOT_INTERFACE("serialbox", SERIAL_BOX) SLOT_INTERFACE("serialbox", SERIAL_BOX)
SLOT_INTERFACE("diag264", DIAG264_SERIAL_LOOPBACK) SLOT_INTERFACE("diag264", DIAG264_SERIAL_LOOPBACK)
SLOT_INTERFACE("nl10", C64_NL10_INTERFACE)
SLOT_INTERFACE_END SLOT_INTERFACE_END
SLOT_INTERFACE_START( sx1541_iec_devices ) SLOT_INTERFACE_START( sx1541_iec_devices )

View File

@ -73,6 +73,7 @@
#include "machine/c64/xl80.h" #include "machine/c64/xl80.h"
#include "machine/c64/zaxxon.h" #include "machine/c64/zaxxon.h"
#include "machine/c128_comal80.h" #include "machine/c128_comal80.h"
#include "machine/c64_nl10.h"
#include "machine/cbm2_std.h" #include "machine/cbm2_std.h"
#include "machine/cbm2_24k.h" #include "machine/cbm2_24k.h"
#include "machine/cbm2_graphic.h" #include "machine/cbm2_graphic.h"

View File

@ -1185,6 +1185,7 @@ $(MESSOBJ)/cbm.a: \
$(MESS_MACHINE)/d9060.o \ $(MESS_MACHINE)/d9060.o \
$(MESS_MACHINE)/d9060hd.o \ $(MESS_MACHINE)/d9060hd.o \
$(MESS_MACHINE)/serialbox.o \ $(MESS_MACHINE)/serialbox.o \
$(MESS_MACHINE)/c64_nl10.o \
$(MESS_MACHINE)/softbox.o \ $(MESS_MACHINE)/softbox.o \
$(MESS_MACHINE)/hardbox.o \ $(MESS_MACHINE)/hardbox.o \
$(MESS_MACHINE)/cmdhd.o \ $(MESS_MACHINE)/cmdhd.o \