diff options
author | 2015-12-04 07:02:45 +0100 | |
---|---|---|
committer | 2015-12-04 07:02:45 +0100 | |
commit | 0c56ac848dd0eba359500d444ecbb51f215ff5b9 (patch) | |
tree | ad3444449470cec94ccaffd174c5a4d1bc90d1e1 /src/devices/cpu/pic16c62x | |
parent | 68f961927a156c47cb444c1f66258a89342d0205 (diff) |
clang-modernize part 3
Diffstat (limited to 'src/devices/cpu/pic16c62x')
-rw-r--r-- | src/devices/cpu/pic16c62x/16c62xdsm.cpp | 2 | ||||
-rw-r--r-- | src/devices/cpu/pic16c62x/pic16c62x.cpp | 6 | ||||
-rw-r--r-- | src/devices/cpu/pic16c62x/pic16c62x.h | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/cpu/pic16c62x/16c62xdsm.cpp b/src/devices/cpu/pic16c62x/16c62xdsm.cpp index 5bdd824dc16..bd1772f764b 100644 --- a/src/devices/cpu/pic16c62x/16c62xdsm.cpp +++ b/src/devices/cpu/pic16c62x/16c62xdsm.cpp @@ -93,7 +93,7 @@ static const char *const PIC16C62xFormats[] = { FMT("111010kkkkkkkk", "xorlw %K"), FMT("11110xkkkkkkkk", "sublw %K"), FMT("11111xkkkkkkkk", "addlw %K"), - NULL + nullptr }; #define MAX_OPS ((ARRAY_LENGTH(PIC16C62xFormats) - 1) / PTRS_PER_FORMAT) diff --git a/src/devices/cpu/pic16c62x/pic16c62x.cpp b/src/devices/cpu/pic16c62x/pic16c62x.cpp index 2a38bcd5f93..2bbbd9f3439 100644 --- a/src/devices/cpu/pic16c62x/pic16c62x.cpp +++ b/src/devices/cpu/pic16c62x/pic16c62x.cpp @@ -105,11 +105,11 @@ static ADDRESS_MAP_START( pic16c62xa_ram, AS_DATA, 8, pic16c62x_device ) AM_RANGE(0x00, 0x06) AM_RAM AM_RANGE(0x0a, 0x0c) AM_RAM AM_RANGE(0x1f, 0x6f) AM_RAM - AM_RANGE(0x70, 0x7f) AM_RAM AM_SHARE(0) + AM_RANGE(0x70, 0x7f) AM_RAM AM_SHARE(nullptr) AM_RANGE(0x80, 0x86) AM_RAM AM_RANGE(0x8a, 0x8e) AM_RAM AM_RANGE(0x9f, 0xbf) AM_RAM - AM_RANGE(0xf0, 0xff) AM_RAM AM_SHARE(0) + AM_RANGE(0xf0, 0xff) AM_RAM AM_SHARE(nullptr) ADDRESS_MAP_END @@ -808,7 +808,7 @@ const pic16c62x_device::pic16c62x_instruction pic16c62x_device::s_instructiontab {(char *)"00000001100100", &pic16c62x_device::clrwdt, 1}, {(char *)"00000001100010", &pic16c62x_device::option, 1}, // deprecated {(char *)"00000001100fff", &pic16c62x_device::tris, 1}, // deprecated - {NULL, NULL, 0} + {nullptr, nullptr, 0} }; /*********************************************************************** diff --git a/src/devices/cpu/pic16c62x/pic16c62x.h b/src/devices/cpu/pic16c62x/pic16c62x.h index f7ac6fd43ae..0e0ecc8f5e6 100644 --- a/src/devices/cpu/pic16c62x/pic16c62x.h +++ b/src/devices/cpu/pic16c62x/pic16c62x.h @@ -82,7 +82,7 @@ protected: // device_memory_interface overrides virtual const address_space_config *memory_space_config(address_spacenum spacenum = AS_0) const { - return (spacenum == AS_PROGRAM) ? &m_program_config : ( (spacenum == AS_IO) ? &m_io_config : ( (spacenum == AS_DATA) ? &m_data_config : NULL ) ); + return (spacenum == AS_PROGRAM) ? &m_program_config : ( (spacenum == AS_IO) ? &m_io_config : ( (spacenum == AS_DATA) ? &m_data_config : nullptr ) ); } // device_state_interface overrides |