diff options
author | 2015-09-13 08:41:44 +0200 | |
---|---|---|
committer | 2015-09-13 08:41:44 +0200 | |
commit | f88cefad27a1737c76e09d99c9fb43e173506081 (patch) | |
tree | 2d8167d03579c46e226471747eb4407bd00ed6fa /src/emu/imagedev/bitbngr.c | |
parent | e92ac9e0fa8e99869894bea00589bbb526be30aa (diff) |
Move all devices into separate part of src tree (nw)
Diffstat (limited to 'src/emu/imagedev/bitbngr.c')
-rw-r--r-- | src/emu/imagedev/bitbngr.c | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/src/emu/imagedev/bitbngr.c b/src/emu/imagedev/bitbngr.c deleted file mode 100644 index 9577d9e1efd..00000000000 --- a/src/emu/imagedev/bitbngr.c +++ /dev/null @@ -1,103 +0,0 @@ -// license:BSD-3-Clause -// copyright-holders:Nathan Woods, Miodrag Milanovic -/********************************************************************* - - bitbngr.c - -*********************************************************************/ - -#include "emu.h" -#include "bitbngr.h" - - - -/*************************************************************************** - IMPLEMENTATION -***************************************************************************/ - -const device_type BITBANGER = &device_creator<bitbanger_device>; - -/*------------------------------------------------- - ctor --------------------------------------------------*/ - -bitbanger_device::bitbanger_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) : - device_t(mconfig, BITBANGER, "Bitbanger", tag, owner, clock, "bitbanger", __FILE__), - device_image_interface(mconfig, *this) -{ -} - - - -/*------------------------------------------------- - native_output - outputs data to a file --------------------------------------------------*/ - -void bitbanger_device::output(UINT8 data) -{ - if (exists()) - { - fwrite(&data, 1); - } -} - - -/*------------------------------------------------- - native_input - inputs data from a file --------------------------------------------------*/ - -UINT32 bitbanger_device::input(void *buffer, UINT32 length) -{ - if (exists()) - { - return fread(buffer, length); - } - return 0; -} - - - -/*------------------------------------------------- - device_start --------------------------------------------------*/ - -void bitbanger_device::device_start(void) -{ -} - - - -/*------------------------------------------------- - device_config_complete --------------------------------------------------*/ - -void bitbanger_device::device_config_complete(void) -{ - update_names(BITBANGER, "bitbngr", "bitb"); -} - - - -/*------------------------------------------------- - call_load --------------------------------------------------*/ - -bool bitbanger_device::call_load(void) -{ - /* we don't need to do anything special */ - return IMAGE_INIT_PASS; -} - -bool bitbanger_device::call_create(int format_type, option_resolution *format_options) -{ - /* we don't need to do anything special */ - return IMAGE_INIT_PASS; -} - -/*------------------------------------------------- - call_unload --------------------------------------------------*/ - -void bitbanger_device::call_unload(void) -{ -} |