summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/bus/isa/sc499.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/bus/isa/sc499.c')
-rw-r--r--src/emu/bus/isa/sc499.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/emu/bus/isa/sc499.c b/src/emu/bus/isa/sc499.c
index 1ca3859d41c..ec5ea575dc6 100644
--- a/src/emu/bus/isa/sc499.c
+++ b/src/emu/bus/isa/sc499.c
@@ -1187,7 +1187,7 @@ void sc499_device::read_block()
}
else
{
- memcpy(m_ctape_block_buffer, tape, SC499_CTAPE_BLOCK_SIZE);
+ memcpy(&m_ctape_block_buffer[0], tape, SC499_CTAPE_BLOCK_SIZE);
// if (verbose > 1 || m_tape_pos % 100 == 0)
{
@@ -1238,7 +1238,7 @@ void sc499_device::write_block()
check_tape();
}
- m_image->write_block(m_tape_pos, m_ctape_block_buffer);
+ m_image->write_block(m_tape_pos, &m_ctape_block_buffer[0]);
m_ctape_block_count = m_tape_pos;
m_ctape_block_index = 0;
m_tape_pos++;
@@ -1255,8 +1255,8 @@ int sc499_device::block_is_filemark()
{
static const UINT8 fm_pattern[] = {0xDE, 0xAF, 0xFA, 0xED};
- int is_filemark = memcmp(m_ctape_block_buffer, fm_pattern, 4) == 0 &&
- memcmp(m_ctape_block_buffer, m_ctape_block_buffer+4, SC499_CTAPE_BLOCK_SIZE-4) == 0;
+ int is_filemark = memcmp(&m_ctape_block_buffer[0], fm_pattern, 4) == 0 &&
+ memcmp(&m_ctape_block_buffer[0], &m_ctape_block_buffer[4], SC499_CTAPE_BLOCK_SIZE-4) == 0;
LOG3(("block_is_filemark for block %d = %d", m_tape_pos-1, is_filemark));
return is_filemark;
@@ -1271,7 +1271,7 @@ void sc499_device::block_set_filemark()
static const UINT8 fm_pattern[] = {0xDE, 0xAF, 0xFA, 0xED};
for (int i = 0; i < SC499_CTAPE_BLOCK_SIZE; i += 4)
{
- memcpy(m_ctape_block_buffer + i, fm_pattern, 4);
+ memcpy(&m_ctape_block_buffer[i], fm_pattern, 4);
}
}
@@ -1294,16 +1294,16 @@ void sc499_ctape_image_device::device_config_complete()
UINT8 *sc499_ctape_image_device::read_block(int block_num)
{
// access beyond end of tape cart
- if (m_ctape_data.bytes() <= (block_num + 1) * SC499_CTAPE_BLOCK_SIZE)
+ if (m_ctape_data.size() <= (block_num + 1) * SC499_CTAPE_BLOCK_SIZE)
return NULL;
else
- return m_ctape_data + (block_num * SC499_CTAPE_BLOCK_SIZE);
+ return &m_ctape_data[block_num * SC499_CTAPE_BLOCK_SIZE];
}
void sc499_ctape_image_device::write_block(int block_num, UINT8 *ptr)
{
- if (!(m_ctape_data.bytes() <= (block_num + 1) * SC499_CTAPE_BLOCK_SIZE))
- memcpy(m_ctape_data + (block_num * SC499_CTAPE_BLOCK_SIZE), ptr, SC499_CTAPE_BLOCK_SIZE);
+ if (!(m_ctape_data.size() <= (block_num + 1) * SC499_CTAPE_BLOCK_SIZE))
+ memcpy(&m_ctape_data[block_num * SC499_CTAPE_BLOCK_SIZE], ptr, SC499_CTAPE_BLOCK_SIZE);
}
bool sc499_ctape_image_device::call_load()
@@ -1317,7 +1317,7 @@ bool sc499_ctape_image_device::call_load()
size = io_generic_size(&io);
m_ctape_data.resize(size);
- io_generic_read(&io, m_ctape_data, 0, size);
+ io_generic_read(&io, &m_ctape_data[0], 0, size);
return IMAGE_INIT_PASS;
}