diff options
author | 2008-04-17 14:29:25 +0000 | |
---|---|---|
committer | 2008-04-17 14:29:25 +0000 | |
commit | e8abef328c08e99bfeb7d257a97f8edbabab4be7 (patch) | |
tree | 7d5f028862a46491353a08f413808a022ad371f2 /src/emu/video/cdp1869.c | |
parent | 63acd17b6aa3b527c5f1c1866a75dba183e32367 (diff) |
[CDP1869] Added a macro for the interface, and made write handlers optional.
Diffstat (limited to 'src/emu/video/cdp1869.c')
-rw-r--r-- | src/emu/video/cdp1869.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/emu/video/cdp1869.c b/src/emu/video/cdp1869.c index 3be7abf678d..a14344771ee 100644 --- a/src/emu/video/cdp1869.c +++ b/src/emu/video/cdp1869.c @@ -2,8 +2,8 @@ #include "sndintrf.h" #include "streams.h" #include "cpu/cdp1802/cdp1802.h" -#include "video/cdp1869.h" #include "sound/cdp1869.h" +#include "video/cdp1869.h" /* @@ -569,7 +569,10 @@ WRITE8_DEVICE_HANDLER( cdp1869_pageram_w ) pma = offset; } - cdp1869->intf->page_ram_w(device, pma, data); + if (cdp1869->intf->page_ram_w) + { + cdp1869->intf->page_ram_w(device, pma, data); + } } /* Character RAM Access */ @@ -610,7 +613,10 @@ WRITE8_DEVICE_HANDLER( cdp1869_charram_w ) cma &= 0x07; } - cdp1869->intf->char_ram_w(device, pma, cma, data); + if (cdp1869->intf->char_ram_w) + { + cdp1869->intf->char_ram_w(device, pma, cma, data); + } } } @@ -776,10 +782,8 @@ static DEVICE_START( cdp1869 ) cdp1869->intf = device->static_config; assert(cdp1869->intf->page_ram_r != NULL); - assert(cdp1869->intf->page_ram_w != NULL); assert(cdp1869->intf->pcb_r != NULL); assert(cdp1869->intf->char_ram_r != NULL); - assert(cdp1869->intf->char_ram_w != NULL); // set initial values |