minor fix + additions to the barcode reader emulation. nw.

This commit is contained in:
etabeta78 2015-01-26 10:24:10 +01:00
parent 8d291a7aa9
commit dfca1c7b4c
2 changed files with 3 additions and 1 deletions

View File

@ -269,7 +269,7 @@ UINT8 barcode_reader_device::read_code()
{
if (m_byte_count < m_byte_length)
{
UINT8 val = m_pixel_data[m_byte_count];
UINT8 val = m_byte_data[m_byte_count];
m_byte_count++;
return val;
}

View File

@ -25,6 +25,8 @@ public:
barcode_reader_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
void write_code(const char *barcode, int len);
int get_pending_code() { return m_new_code; }
int get_byte_length() { return m_byte_length; }
UINT8 read_code();
int read_pixel();