summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/53c810.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/53c810.cpp')
-rw-r--r--src/devices/machine/53c810.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/machine/53c810.cpp b/src/devices/machine/53c810.cpp
index a2a22f0fac0..1323e822d69 100644
--- a/src/devices/machine/53c810.cpp
+++ b/src/devices/machine/53c810.cpp
@@ -634,9 +634,9 @@ void lsi53c810_device::device_start()
m_dma_cb.bind_relative_to(*owner());
m_fetch_cb.bind_relative_to(*owner());
- for (int i = 0; i < 256; i++)
+ for (auto & elem : dma_opcode)
{
- dma_opcode[i] = opcode_handler_delegate(FUNC(lsi53c810_device::dmaop_invalid), this);
+ elem = opcode_handler_delegate(FUNC(lsi53c810_device::dmaop_invalid), this);
}
add_opcode(0x00, 0xc0, opcode_handler_delegate(FUNC( lsi53c810_device::dmaop_block_move ), this));
@@ -671,7 +671,7 @@ UINT32 lsi53c810_device::lsi53c810_dasm_fetch(UINT32 pc)
unsigned lsi53c810_device::lsi53c810_dasm(char *buf, UINT32 pc)
{
unsigned result = 0;
- const char *op_mnemonic = NULL;
+ const char *op_mnemonic = nullptr;
UINT32 op = lsi53c810_dasm_fetch(pc);
UINT32 dest;
int i;