mirror of
https://github.com/holub/mame
synced 2025-05-04 13:33:05 +03:00
minor fix + additions to the barcode reader emulation. nw.
This commit is contained in:
parent
8d291a7aa9
commit
dfca1c7b4c
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user