diff options
author | 2008-12-19 06:46:17 +0000 | |
---|---|---|
committer | 2008-12-19 06:46:17 +0000 | |
commit | 42c9aeff3943f2e6779d3d125fc014cd96d16d71 (patch) | |
tree | 8d681b294d01bf526dd808ed95337cab1b98d101 /src/emu/machine/8237dma.c | |
parent | 3fdd1d460aa7b752956237d5e9c8a9ebecf409b9 (diff) |
Cleaned up device and sound interfaces to match the CPU
interfaces when handling strings. Namely, the generic
get_info functions allocate a temporary string and the
device in question copies its string to the target,
instead of assigning a const char *. Updated all device
and sound cores to operate this way.
Added the concept of a cpu_state_table, which is
supplied by the CPU cores and which describes all the
register state accessible to the debugger and other
subsystems. The format of the table is such that most
data can be simply fetched from memory without the
further involvement of the CPU core, including the
display of common formats. Extensibility points are
available for custom display and for importing/exporting
the data to intermediate variables for more complicated
scenarios. Updated the ADSP21xx, TMS340x0, and i86 cores
to use this.
Removed the old debugger register list, which was never
used. Replaced it with using ordering from the
cpu_state_table.
Renamed REG_PC -> REG_GENPC, REG_SP -> REG_GENSP, and
REG_PREVIOUSPC -> REG_GENPCBASE. Updated a few spots
that were using these directly. Moved these definitions
into the end of the register area rather than leaving
them outside which put them in a weird range.
Diffstat (limited to 'src/emu/machine/8237dma.c')
-rw-r--r-- | src/emu/machine/8237dma.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/emu/machine/8237dma.c b/src/emu/machine/8237dma.c index 2a56252635f..ebb659aa6f5 100644 --- a/src/emu/machine/8237dma.c +++ b/src/emu/machine/8237dma.c @@ -440,11 +440,11 @@ DEVICE_GET_INFO( dma8237 ) { case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(dma8237); break; /* --- the following bits of info are returned as NULL-terminated strings --- */ - case DEVINFO_STR_NAME: info->s = "Intel DMA8237"; break; - case DEVINFO_STR_FAMILY: info->s = "DMA8237"; break; - case DEVINFO_STR_VERSION: info->s = "1.00"; break; - case DEVINFO_STR_SOURCE_FILE: info->s = __FILE__; break; - case DEVINFO_STR_CREDITS: info->s = "Copyright the MAME and MESS Teams"; break; + case DEVINFO_STR_NAME: strcpy(info->s, "Intel DMA8237"); break; + case DEVINFO_STR_FAMILY: strcpy(info->s, "DMA8237"); break; + case DEVINFO_STR_VERSION: strcpy(info->s, "1.00"); break; + case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; + case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright the MAME and MESS Teams"); break; } } |