src/mess/video/cdp1861.c
| r4226 | r4227 | |
| 1 | 1 | #include "driver.h" |
| 2 | 2 | #include "cdp1861.h" |
| 3 | 3 | |
| 4 | /*************************************************************************** |
| 5 | PARAMETERS |
| 6 | ***************************************************************************/ |
| 7 | |
| 4 | 8 | #define CDP1861_CYCLES_DMA_START 2*8 |
| 5 | 9 | #define CDP1861_CYCLES_DMA_ACTIVE 8*8 |
| 6 | 10 | #define CDP1861_CYCLES_DMA_WAIT 6*8 |
| 7 | 11 | |
| 12 | /*************************************************************************** |
| 13 | TYPE DEFINITIONS |
| 14 | ***************************************************************************/ |
| 15 | |
| 8 | 16 | typedef struct _cdp1861_t cdp1861_t; |
| 9 | 17 | struct _cdp1861_t |
| 10 | 18 | { |
| 11 | | const cdp1861_interface *intf; |
| 19 | devcb_resolved_write_line out_int_func; |
| 20 | devcb_resolved_write_line out_dmao_func; |
| 21 | devcb_resolved_write_line out_efx_func; |
| 12 | 22 | |
| 13 | 23 | const device_config *screen; /* screen */ |
| 14 | 24 | bitmap_t *bitmap; /* bitmap */ |
| r4226 | r4227 | |
| 20 | 30 | emu_timer *int_timer; /* interrupt timer */ |
| 21 | 31 | emu_timer *efx_timer; /* EFx timer */ |
| 22 | 32 | emu_timer *dma_timer; /* DMA timer */ |
| 33 | |
| 34 | const device_config *cpu; |
| 23 | 35 | }; |
| 24 | 36 | |
| 37 | /*************************************************************************** |
| 38 | INLINE FUNCTIONS |
| 39 | ***************************************************************************/ |
| 40 | |
| 25 | 41 | INLINE cdp1861_t *get_safe_token(const device_config *device) |
| 26 | 42 | { |
| 27 | 43 | assert(device != NULL); |
| r4226 | r4227 | |
| 30 | 46 | return (cdp1861_t *)device->token; |
| 31 | 47 | } |
| 32 | 48 | |
| 49 | INLINE const cdp1861_interface *get_interface(const device_config *device) |
| 50 | { |
| 51 | assert(device != NULL); |
| 52 | assert((device->type == CDP1861)); |
| 53 | return (const cdp1861_interface *) device->static_config; |
| 54 | } |
| 55 | |
| 56 | /*************************************************************************** |
| 57 | IMPLEMENTATION |
| 58 | ***************************************************************************/ |
| 59 | |
| 33 | 60 | /* Timer Callbacks */ |
| 34 | 61 | |
| 35 | 62 | static TIMER_CALLBACK( cdp1861_int_tick ) |
| r4226 | r4227 | |
| 43 | 70 | { |
| 44 | 71 | if (cdp1861->disp) |
| 45 | 72 | { |
| 46 | | cdp1861->intf->on_int_changed(device, HOLD_LINE); |
| 73 | devcb_call_write_line(&cdp1861->out_int_func, ASSERT_LINE); |
| 47 | 74 | } |
| 48 | 75 | |
| 49 | 76 | timer_adjust_oneshot(cdp1861->int_timer, video_screen_get_time_until_pos(cdp1861->screen, CDP1861_SCANLINE_INT_END, 0), 0); |
| r4226 | r4227 | |
| 52 | 79 | { |
| 53 | 80 | if (cdp1861->disp) |
| 54 | 81 | { |
| 55 | | cdp1861->intf->on_int_changed(device, CLEAR_LINE); |
| 82 | devcb_call_write_line(&cdp1861->out_int_func, CLEAR_LINE); |
| 56 | 83 | } |
| 57 | 84 | |
| 58 | 85 | timer_adjust_oneshot(cdp1861->int_timer, video_screen_get_time_until_pos(cdp1861->screen, CDP1861_SCANLINE_INT_START, 0), 0); |
| r4226 | r4227 | |
| 69 | 96 | switch (scanline) |
| 70 | 97 | { |
| 71 | 98 | case CDP1861_SCANLINE_EFX_TOP_START: |
| 72 | | cdp1861->intf->on_efx_changed(device, ASSERT_LINE); |
| 99 | devcb_call_write_line(&cdp1861->out_efx_func, ASSERT_LINE); |
| 73 | 100 | timer_adjust_oneshot(cdp1861->efx_timer, video_screen_get_time_until_pos(cdp1861->screen, CDP1861_SCANLINE_EFX_TOP_END, 0), 0); |
| 74 | 101 | break; |
| 75 | 102 | |
| 76 | 103 | case CDP1861_SCANLINE_EFX_TOP_END: |
| 77 | | cdp1861->intf->on_efx_changed(device, CLEAR_LINE); |
| 104 | devcb_call_write_line(&cdp1861->out_efx_func, CLEAR_LINE); |
| 78 | 105 | timer_adjust_oneshot(cdp1861->efx_timer, video_screen_get_time_until_pos(cdp1861->screen, CDP1861_SCANLINE_EFX_BOTTOM_START, 0), 0); |
| 79 | 106 | break; |
| 80 | 107 | |
| 81 | 108 | case CDP1861_SCANLINE_EFX_BOTTOM_START: |
| 82 | | cdp1861->intf->on_efx_changed(device, ASSERT_LINE); |
| 109 | devcb_call_write_line(&cdp1861->out_efx_func, ASSERT_LINE); |
| 83 | 110 | timer_adjust_oneshot(cdp1861->efx_timer, video_screen_get_time_until_pos(cdp1861->screen, CDP1861_SCANLINE_EFX_BOTTOM_END, 0), 0); |
| 84 | 111 | break; |
| 85 | 112 | |
| 86 | 113 | case CDP1861_SCANLINE_EFX_BOTTOM_END: |
| 87 | | cdp1861->intf->on_efx_changed(device, CLEAR_LINE); |
| 114 | devcb_call_write_line(&cdp1861->out_efx_func, CLEAR_LINE); |
| 88 | 115 | timer_adjust_oneshot(cdp1861->efx_timer, video_screen_get_time_until_pos(cdp1861->screen, CDP1861_SCANLINE_EFX_TOP_START, 0), 0); |
| 89 | 116 | break; |
| 90 | 117 | } |
| r4226 | r4227 | |
| 103 | 130 | { |
| 104 | 131 | if (scanline >= CDP1861_SCANLINE_DISPLAY_START && scanline < CDP1861_SCANLINE_DISPLAY_END) |
| 105 | 132 | { |
| 106 | | cdp1861->intf->on_dmao_changed(device, CLEAR_LINE); |
| 133 | devcb_call_write_line(&cdp1861->out_dmao_func, CLEAR_LINE); |
| 107 | 134 | } |
| 108 | 135 | } |
| 109 | 136 | |
| 110 | | timer_adjust_oneshot(cdp1861->dma_timer, cpu_clocks_to_attotime(machine->cpu[0], CDP1861_CYCLES_DMA_WAIT), 0); |
| 137 | timer_adjust_oneshot(cdp1861->dma_timer, cpu_clocks_to_attotime(cdp1861->cpu, CDP1861_CYCLES_DMA_WAIT), 0); |
| 111 | 138 | |
| 112 | 139 | cdp1861->dmaout = 0; |
| 113 | 140 | } |
| r4226 | r4227 | |
| 117 | 144 | { |
| 118 | 145 | if (scanline >= CDP1861_SCANLINE_DISPLAY_START && scanline < CDP1861_SCANLINE_DISPLAY_END) |
| 119 | 146 | { |
| 120 | | cdp1861->intf->on_dmao_changed(device, HOLD_LINE); |
| 147 | devcb_call_write_line(&cdp1861->out_dmao_func, ASSERT_LINE); |
| 121 | 148 | } |
| 122 | 149 | } |
| 123 | 150 | |
| 124 | | timer_adjust_oneshot(cdp1861->dma_timer, cpu_clocks_to_attotime(machine->cpu[0], CDP1861_CYCLES_DMA_ACTIVE), 0); |
| 151 | timer_adjust_oneshot(cdp1861->dma_timer, cpu_clocks_to_attotime(cdp1861->cpu, CDP1861_CYCLES_DMA_ACTIVE), 0); |
| 125 | 152 | |
| 126 | 153 | cdp1861->dmaout = 1; |
| 127 | 154 | } |
| r4226 | r4227 | |
| 144 | 171 | |
| 145 | 172 | cdp1861->disp = 0; |
| 146 | 173 | |
| 147 | | cdp1861->intf->on_int_changed(device, CLEAR_LINE); |
| 148 | | cdp1861->intf->on_dmao_changed(device, CLEAR_LINE); |
| 174 | devcb_call_write_line(&cdp1861->out_int_func, CLEAR_LINE); |
| 175 | devcb_call_write_line(&cdp1861->out_dmao_func, CLEAR_LINE); |
| 149 | 176 | } |
| 150 | 177 | |
| 151 | 178 | /* DMA Write */ |
| r4226 | r4227 | |
| 187 | 214 | static DEVICE_START( cdp1861 ) |
| 188 | 215 | { |
| 189 | 216 | cdp1861_t *cdp1861 = get_safe_token(device); |
| 217 | const cdp1861_interface *intf = get_interface(device); |
| 190 | 218 | |
| 191 | | /* validate arguments */ |
| 192 | | assert(device != NULL); |
| 193 | | assert(device->tag != NULL); |
| 194 | | assert(device->clock > 0); |
| 219 | /* resolve callbacks */ |
| 220 | devcb_resolve_write_line(&cdp1861->out_int_func, &intf->out_int_func, device); |
| 221 | devcb_resolve_write_line(&cdp1861->out_dmao_func, &intf->out_dmao_func, device); |
| 222 | devcb_resolve_write_line(&cdp1861->out_efx_func, &intf->out_efx_func, device); |
| 195 | 223 | |
| 196 | | cdp1861->intf = device->static_config; |
| 224 | /* get the cpu */ |
| 225 | cdp1861->cpu = cputag_get_cpu(device->machine, intf->cpu_tag); |
| 197 | 226 | |
| 198 | | assert(cdp1861->intf != NULL); |
| 199 | | assert(cdp1861->intf->on_int_changed != NULL); |
| 200 | | assert(cdp1861->intf->on_dmao_changed != NULL); |
| 201 | | assert(cdp1861->intf->on_efx_changed != NULL); |
| 202 | | |
| 203 | 227 | /* get the screen device */ |
| 204 | | cdp1861->screen = devtag_get_device(device->machine, VIDEO_SCREEN, cdp1861->intf->screen_tag); |
| 228 | cdp1861->screen = devtag_get_device(device->machine, VIDEO_SCREEN, intf->screen_tag); |
| 205 | 229 | assert(cdp1861->screen != NULL); |
| 206 | 230 | |
| 207 | 231 | /* allocate the temporary bitmap */ |
| r4226 | r4227 | |
| 224 | 248 | |
| 225 | 249 | timer_adjust_oneshot(cdp1861->int_timer, video_screen_get_time_until_pos(cdp1861->screen, CDP1861_SCANLINE_INT_START, 0), 0); |
| 226 | 250 | timer_adjust_oneshot(cdp1861->efx_timer, video_screen_get_time_until_pos(cdp1861->screen, CDP1861_SCANLINE_EFX_TOP_START, 0), 0); |
| 227 | | timer_adjust_oneshot(cdp1861->dma_timer, cpu_clocks_to_attotime(device->machine->cpu[0], CDP1861_CYCLES_DMA_START), 0); |
| 251 | timer_adjust_oneshot(cdp1861->dma_timer, cpu_clocks_to_attotime(cdp1861->cpu, CDP1861_CYCLES_DMA_START), 0); |
| 228 | 252 | |
| 229 | 253 | cdp1861->disp = 0; |
| 230 | 254 | cdp1861->dmaout = 0; |
| 231 | 255 | |
| 232 | | cdp1861->intf->on_int_changed(device, CLEAR_LINE); |
| 233 | | cdp1861->intf->on_dmao_changed(device, CLEAR_LINE); |
| 234 | | cdp1861->intf->on_efx_changed(device, CLEAR_LINE); |
| 256 | devcb_call_write_line(&cdp1861->out_int_func, CLEAR_LINE); |
| 257 | devcb_call_write_line(&cdp1861->out_dmao_func, CLEAR_LINE); |
| 258 | devcb_call_write_line(&cdp1861->out_efx_func, CLEAR_LINE); |
| 235 | 259 | } |
| 236 | 260 | |
| 237 | 261 | static DEVICE_SET_INFO( cdp1861 ) |
| r4226 | r4227 | |
| 247 | 271 | switch (state) |
| 248 | 272 | { |
| 249 | 273 | /* --- the following bits of info are returned as 64-bit signed integers --- */ |
| 250 | | case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(cdp1861_t); break; |
| 251 | | case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = 0; break; |
| 252 | | case DEVINFO_INT_CLASS: info->i = DEVICE_CLASS_PERIPHERAL; break; |
| 274 | case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(cdp1861_t); break; |
| 275 | case DEVINFO_INT_INLINE_CONFIG_BYTES: info->i = 0; break; |
| 276 | case DEVINFO_INT_CLASS: info->i = DEVICE_CLASS_PERIPHERAL; break; |
| 253 | 277 | |
| 254 | 278 | /* --- the following bits of info are returned as pointers to data or functions --- */ |
| 255 | | case DEVINFO_FCT_SET_INFO: info->set_info = DEVICE_SET_INFO_NAME(cdp1861); break; |
| 256 | | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(cdp1861); break; |
| 257 | | case DEVINFO_FCT_STOP: /* Nothing */ break; |
| 258 | | case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(cdp1861); break; |
| 279 | case DEVINFO_FCT_SET_INFO: info->set_info = DEVICE_SET_INFO_NAME(cdp1861); break; |
| 280 | case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(cdp1861); break; |
| 281 | case DEVINFO_FCT_STOP: /* Nothing */ break; |
| 282 | case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(cdp1861); break; |
| 259 | 283 | |
| 260 | 284 | /* --- the following bits of info are returned as NULL-terminated strings --- */ |
| 261 | | case DEVINFO_STR_NAME: strcpy(info->s, "RCA CDP1861"); break; |
| 262 | | case DEVINFO_STR_FAMILY: strcpy(info->s, "RCA CDP1800"); break; |
| 263 | | case DEVINFO_STR_VERSION: strcpy(info->s, "1.0"); break; |
| 285 | case DEVINFO_STR_NAME: strcpy(info->s, "RCA CDP1861"); break; |
| 286 | case DEVINFO_STR_FAMILY: strcpy(info->s, "RCA CDP1800"); break; |
| 287 | case DEVINFO_STR_VERSION: strcpy(info->s, "1.0"); break; |
| 264 | 288 | case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; |
| 265 | | case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright MESS Team"); break; |
| 289 | case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright MESS Team"); break; |
| 266 | 290 | } |
| 267 | 291 | } |
src/mess/video/cdp1861.h
| r4226 | r4227 | |
| 24 | 24 | #ifndef __CDP1861__ |
| 25 | 25 | #define __CDP1861__ |
| 26 | 26 | |
| 27 | #include "devcb.h" |
| 28 | |
| 29 | /*************************************************************************** |
| 30 | PARAMETERS |
| 31 | ***************************************************************************/ |
| 32 | |
| 27 | 33 | #define CDP1861_VISIBLE_COLUMNS 64 |
| 28 | 34 | #define CDP1861_VISIBLE_LINES 128 |
| 29 | 35 | |
| r4226 | r4227 | |
| 48 | 54 | #define CDP1861_SCANLINE_EFX_BOTTOM_START CDP1861_SCANLINE_DISPLAY_END - 4 |
| 49 | 55 | #define CDP1861_SCANLINE_EFX_BOTTOM_END CDP1861_SCANLINE_DISPLAY_END |
| 50 | 56 | |
| 51 | | typedef void (*cdp1861_on_int_changed_func) (const device_config *device, int level); |
| 52 | | #define CDP1861_ON_INT_CHANGED(name) void name(const device_config *device, int level) |
| 57 | /*************************************************************************** |
| 58 | MACROS / CONSTANTS |
| 59 | ***************************************************************************/ |
| 53 | 60 | |
| 54 | | typedef void (*cdp1861_on_dmao_changed_func) (const device_config *device, int level); |
| 55 | | #define CDP1861_ON_DMAO_CHANGED(name) void name(const device_config *device, int level) |
| 56 | | |
| 57 | | typedef void (*cdp1861_on_efx_changed_func) (const device_config *device, int level); |
| 58 | | #define CDP1861_ON_EFX_CHANGED(name) void name(const device_config *device, int level) |
| 59 | | |
| 60 | 61 | #define CDP1861 DEVICE_GET_INFO_NAME(cdp1861) |
| 61 | 62 | |
| 62 | | #define MDRV_CDP1861_ADD(_tag, _clock, _config) \ |
| 63 | #define MDRV_CDP1861_ADD(_tag, _config, _clock) \ |
| 63 | 64 | MDRV_DEVICE_ADD(_tag, CDP1861, _clock) \ |
| 64 | 65 | MDRV_DEVICE_CONFIG(_config) |
| 65 | 66 | |
| 66 | | /* interface */ |
| 67 | #define CDP1861_INTERFACE(name) const cdp1861_interface (name)= |
| 68 | |
| 69 | /*************************************************************************** |
| 70 | TYPE DEFINITIONS |
| 71 | ***************************************************************************/ |
| 72 | |
| 67 | 73 | typedef struct _cdp1861_interface cdp1861_interface; |
| 68 | 74 | struct _cdp1861_interface |
| 69 | 75 | { |
| 76 | const char *cpu_tag; /* cpu we are working with */ |
| 70 | 77 | const char *screen_tag; /* screen we are acting on */ |
| 71 | 78 | |
| 72 | 79 | /* this gets called for every change of the INT pin (pin 3) */ |
| 73 | | cdp1861_on_int_changed_func on_int_changed; |
| 80 | devcb_write_line out_int_func; |
| 74 | 81 | |
| 75 | 82 | /* this gets called for every change of the DMAO pin (pin 2) */ |
| 76 | | cdp1861_on_dmao_changed_func on_dmao_changed; |
| 83 | devcb_write_line out_dmao_func; |
| 77 | 84 | |
| 78 | 85 | /* this gets called for every change of the EFX pin (pin 9) */ |
| 79 | | cdp1861_on_efx_changed_func on_efx_changed; |
| 86 | devcb_write_line out_efx_func; |
| 80 | 87 | }; |
| 81 | | #define CDP1861_INTERFACE(name) const cdp1861_interface (name)= |
| 82 | 88 | |
| 89 | /*************************************************************************** |
| 90 | PROTOTYPES |
| 91 | ***************************************************************************/ |
| 92 | |
| 83 | 93 | /* device interface */ |
| 84 | 94 | DEVICE_GET_INFO( cdp1861 ); |
| 85 | 95 | |
src/mess/drivers/tmc1800.c
| r4226 | r4227 | |
| 762 | 762 | |
| 763 | 763 | /* RAM banking */ |
| 764 | 764 | |
| 765 | | memory_configure_bank(machine, 1, 0, 2, memory_region(machine, "main"), 0x8000); |
| 765 | memory_configure_bank(machine, 1, 0, 2, memory_region(machine, CDP1802_TAG), 0x8000); |
| 766 | 766 | |
| 767 | 767 | /* ROM/colorram banking */ |
| 768 | 768 | |
| 769 | 769 | state->colorram = auto_malloc(TMC2000_COLORRAM_SIZE); |
| 770 | 770 | |
| 771 | | memory_configure_bank(machine, 2, TMC2000_BANK_MONITOR, 1, memory_region(machine, "main") + 0x8000, 0); |
| 771 | memory_configure_bank(machine, 2, TMC2000_BANK_MONITOR, 1, memory_region(machine, CDP1802_TAG) + 0x8000, 0); |
| 772 | 772 | memory_configure_bank(machine, 2, TMC2000_BANK_COLORRAM, 1, state->colorram, 0); |
| 773 | 773 | |
| 774 | 774 | /* randomize color RAM contents */ |
| r4226 | r4227 | |
| 819 | 819 | |
| 820 | 820 | /* RAM/ROM banking */ |
| 821 | 821 | |
| 822 | | memory_configure_bank(machine, 1, 0, 2, memory_region(machine, "main"), 0x8000); |
| 822 | memory_configure_bank(machine, 1, 0, 2, memory_region(machine, CDP1802_TAG), 0x8000); |
| 823 | 823 | |
| 824 | 824 | /* allocate monitor timer */ |
| 825 | 825 | |
| r4226 | r4227 | |
| 870 | 870 | |
| 871 | 871 | // basic system hardware |
| 872 | 872 | |
| 873 | | MDRV_CPU_ADD("main", CDP1802, XTAL_1_75MHz) |
| 873 | MDRV_CPU_ADD(CDP1802_TAG, CDP1802, XTAL_1_75MHz) |
| 874 | 874 | MDRV_CPU_PROGRAM_MAP(tmc1800_map, 0) |
| 875 | 875 | MDRV_CPU_IO_MAP(tmc1800_io_map, 0) |
| 876 | 876 | MDRV_CPU_CONFIG(tmc1800_config) |
| r4226 | r4227 | |
| 901 | 901 | |
| 902 | 902 | // basic system hardware |
| 903 | 903 | |
| 904 | | MDRV_CPU_ADD("main", CDP1802, XTAL_1_75MHz) |
| 904 | MDRV_CPU_ADD(CDP1802_TAG, CDP1802, XTAL_1_75MHz) |
| 905 | 905 | MDRV_CPU_PROGRAM_MAP(osc1000b_map, 0) |
| 906 | 906 | MDRV_CPU_IO_MAP(osc1000b_io_map, 0) |
| 907 | 907 | MDRV_CPU_CONFIG(osc1000b_config) |
| r4226 | r4227 | |
| 932 | 932 | |
| 933 | 933 | // basic system hardware |
| 934 | 934 | |
| 935 | | MDRV_CPU_ADD("main", CDP1802, XTAL_1_75MHz) |
| 935 | MDRV_CPU_ADD(CDP1802_TAG, CDP1802, XTAL_1_75MHz) |
| 936 | 936 | MDRV_CPU_PROGRAM_MAP(tmc2000_map, 0) |
| 937 | 937 | MDRV_CPU_IO_MAP(tmc2000_io_map, 0) |
| 938 | 938 | MDRV_CPU_CONFIG(tmc2000_config) |
| r4226 | r4227 | |
| 963 | 963 | |
| 964 | 964 | // basic system hardware |
| 965 | 965 | |
| 966 | | MDRV_CPU_ADD("main", CDP1802, XTAL_1_75MHz) |
| 966 | MDRV_CPU_ADD(CDP1802_TAG, CDP1802, XTAL_1_75MHz) |
| 967 | 967 | MDRV_CPU_PROGRAM_MAP(oscnano_map, 0) |
| 968 | 968 | MDRV_CPU_IO_MAP(oscnano_io_map, 0) |
| 969 | 969 | MDRV_CPU_CONFIG(oscnano_config) |
| r4226 | r4227 | |
| 992 | 992 | /* ROMs */ |
| 993 | 993 | |
| 994 | 994 | ROM_START( tmc1800 ) |
| 995 | | ROM_REGION( 0x10000, "main", 0 ) |
| 995 | ROM_REGION( 0x10000, CDP1802_TAG, 0 ) |
| 996 | 996 | ROM_LOAD( "mmi6341-1.ic2", 0x8000, 0x0200, NO_DUMP ) // equivalent to 82S141 |
| 997 | 997 | ROM_END |
| 998 | 998 | |
| 999 | 999 | ROM_START( osc1000b ) |
| 1000 | | ROM_REGION( 0x10000, "main", 0 ) |
| 1000 | ROM_REGION( 0x10000, CDP1802_TAG, 0 ) |
| 1001 | 1001 | ROM_LOAD( "mmi6341-1.ic2", 0x8000, 0x0200, NO_DUMP ) // equivalent to 82S141 |
| 1002 | 1002 | |
| 1003 | 1003 | ROM_REGION( 0x400, "gfx1", ROMREGION_DISPOSE ) |
| r4226 | r4227 | |
| 1006 | 1006 | ROM_END |
| 1007 | 1007 | |
| 1008 | 1008 | ROM_START( tmc2000 ) |
| 1009 | | ROM_REGION( 0x10000, "main", 0 ) |
| 1009 | ROM_REGION( 0x10000, CDP1802_TAG, 0 ) |
| 1010 | 1010 | ROM_SYSTEM_BIOS( 0, "prom200", "PROM N:o 200" ) |
| 1011 | 1011 | ROMX_LOAD( "200.m5", 0x8000, 0x0200, BAD_DUMP CRC(79da3221) SHA1(008da3ef4f69ab1a493362dfca856375b19c94bd), ROM_BIOS(1) ) // typed in from the manual |
| 1012 | 1012 | ROM_SYSTEM_BIOS( 1, "prom202", "PROM N:o 202" ) |
| r4226 | r4227 | |
| 1016 | 1016 | ROM_END |
| 1017 | 1017 | |
| 1018 | 1018 | ROM_START( oscnano ) |
| 1019 | | ROM_REGION( 0x10000, "main", 0 ) |
| 1019 | ROM_REGION( 0x10000, CDP1802_TAG, 0 ) |
| 1020 | 1020 | ROM_LOAD( "mmi6349.ic", 0x8000, 0x0200, BAD_DUMP CRC(1ec1b432) SHA1(ac41f5e38bcd4b80bd7a5b277a2c600899fd5fb8) ) // equivalent to 82S141 |
| 1021 | 1021 | ROM_END |
| 1022 | 1022 | |
| r4226 | r4227 | |
| 1024 | 1024 | |
| 1025 | 1025 | static QUICKLOAD_LOAD( tmc1800 ) |
| 1026 | 1026 | { |
| 1027 | | UINT8 *ptr = memory_region(image->machine, "main"); |
| 1027 | UINT8 *ptr = memory_region(image->machine, CDP1802_TAG); |
| 1028 | 1028 | int size = image_length(image); |
| 1029 | 1029 | |
| 1030 | 1030 | if (size > mess_ram_size) |