summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/astrocde/slot.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/astrocde/slot.cpp')
-rw-r--r--src/devices/bus/astrocde/slot.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/devices/bus/astrocde/slot.cpp b/src/devices/bus/astrocde/slot.cpp
index 99f6e2609b2..74071506c90 100644
--- a/src/devices/bus/astrocde/slot.cpp
+++ b/src/devices/bus/astrocde/slot.cpp
@@ -27,7 +27,7 @@ const device_type ASTROCADE_CART_SLOT = &device_creator<astrocade_cart_slot_devi
device_astrocade_cart_interface::device_astrocade_cart_interface(const machine_config &mconfig, device_t &device)
: device_slot_card_interface(mconfig, device),
- m_rom(NULL),
+ m_rom(nullptr),
m_rom_size(0)
{
}
@@ -47,7 +47,7 @@ device_astrocade_cart_interface::~device_astrocade_cart_interface()
void device_astrocade_cart_interface::rom_alloc(UINT32 size, const char *tag)
{
- if (m_rom == NULL)
+ if (m_rom == nullptr)
{
m_rom = device().machine().memory().region_alloc(std::string(tag).append(ASTROCADESLOT_ROM_REGION_TAG).c_str(), size, 1, ENDIANNESS_LITTLE)->base();
m_rom_size = size;
@@ -150,15 +150,15 @@ bool astrocade_cart_slot_device::call_load()
{
if (m_cart)
{
- UINT32 size = (software_entry() == NULL) ? length() : get_software_region_length("rom");
+ UINT32 size = (software_entry() == nullptr) ? length() : get_software_region_length("rom");
m_cart->rom_alloc(size, tag());
- if (software_entry() == NULL)
+ if (software_entry() == nullptr)
fread(m_cart->get_rom_base(), size);
else
memcpy(m_cart->get_rom_base(), get_software_region("rom"), size);
- if (software_entry() == NULL)
+ if (software_entry() == nullptr)
{
m_type = ASTROCADE_STD;