trunk/src/emu/bus/isa/3c505.c
| r29174 | r29175 | |
| 473 | 473 | m_size = RX_FIFO_SIZE; // size; |
| 474 | 474 | for (i = 0; i < m_size; i++) |
| 475 | 475 | { |
| 476 | | m_db[i] = new data_buffer(); |
| 476 | m_db[i] = global_alloc(data_buffer()); |
| 477 | 477 | m_db[i]->start(device, db_size); |
| 478 | 478 | } |
| 479 | 479 | } |
| r29174 | r29175 | |
| 485 | 485 | m_count = 0; |
| 486 | 486 | } |
| 487 | 487 | |
| 488 | threecom3c505_device::data_buffer_fifo::~data_buffer_fifo() |
| 489 | { |
| 490 | for (int i = 0; i < m_size; i++) |
| 491 | { |
| 492 | global_free(m_db[i]); |
| 493 | } |
| 494 | } |
| 495 | |
| 488 | 496 | int threecom3c505_device::data_buffer_fifo::put(const UINT8 data[], const int length) |
| 489 | 497 | { |
| 490 | 498 | UINT16 next_index = (m_put_index + 1) % m_size; |