Previous 15994 Revisions Next

r3647 Thursday 27th November, 2008 at 14:34:21 UTC by Nathan Woods
Reenabled MTX, more search and replace
[src/mess]mess.mak messdriv.c
[src/mess/drivers]atarist.c einstein.c pasogo.c studio2.c tmc2000e.c vip.c
[src/mess/machine]aim65.c comx35.c kc.c lynx.c mtx.c
[src/mess/video]comx35.c tmc1800.c

src/mess/video/tmc1800.c
r3646r3647
99
1010static CDP1861_ON_INT_CHANGED( tmc1800_int_w )
1111{
12   cpunum_set_input_line(device->machine, 0, CDP1802_INPUT_LINE_INT, level);
12   cpu_set_input_line(device->machine->cpu[0], CDP1802_INPUT_LINE_INT, level);
1313}
1414
1515static CDP1861_ON_DMAO_CHANGED( tmc1800_dmao_w )
1616{
17   cpunum_set_input_line(device->machine, 0, CDP1802_INPUT_LINE_DMAOUT, level);
17   cpu_set_input_line(device->machine->cpu[0], CDP1802_INPUT_LINE_DMAOUT, level);
1818}
1919
2020static CDP1861_ON_EFX_CHANGED( tmc1800_efx_w )
r3646r3647
4646
4747static CDP1864_ON_INT_CHANGED( tmc2000_int_w )
4848{
49   cpunum_set_input_line(device->machine, 0, CDP1802_INPUT_LINE_INT, level);
49   cpu_set_input_line(device->machine->cpu[0], CDP1802_INPUT_LINE_INT, level);
5050}
5151
5252static CDP1864_ON_DMAO_CHANGED( tmc2000_dmao_w )
5353{
54   cpunum_set_input_line(device->machine, 0, CDP1802_INPUT_LINE_DMAOUT, level);
54   cpu_set_input_line(device->machine->cpu[0], CDP1802_INPUT_LINE_DMAOUT, level);
5555}
5656
5757static CDP1864_ON_EFX_CHANGED( tmc2000_efx_w )
r3646r3647
8888
8989static CDP1864_ON_INT_CHANGED( oscnano_int_w )
9090{
91   cpunum_set_input_line(device->machine, 0, CDP1802_INPUT_LINE_INT, level);
91   cpu_set_input_line(device->machine->cpu[0], CDP1802_INPUT_LINE_INT, level);
9292}
9393
9494static CDP1864_ON_DMAO_CHANGED( oscnano_dmao_w )
9595{
96   cpunum_set_input_line(device->machine, 0, CDP1802_INPUT_LINE_DMAOUT, level);
96   cpu_set_input_line(device->machine->cpu[0], CDP1802_INPUT_LINE_DMAOUT, level);
9797}
9898
9999static CDP1864_ON_EFX_CHANGED( oscnano_efx_w )
src/mess/video/comx35.c
r3646r3647
6262
6363   if (!state->iden && !prd)
6464   {
65      cpunum_set_input_line(device->machine, 0, CDP1802_INPUT_LINE_INT, ASSERT_LINE);
65      cpu_set_input_line(device->machine->cpu[0], CDP1802_INPUT_LINE_INT, ASSERT_LINE);
6666   }
6767
6868   state->cdp1869_prd = prd;
src/mess/messdriv.c
r3646r3647
802802//128u4   DRIVER( pdp1 )      /* 1961 DEC PDP1                           */
803803
804804   /* MEMOTECH */
805//128u4   DRIVER( mtx512 )   /* 1983 Memotech MTX 512                     */
806//128u4   DRIVER( mtx500 )   /* 1983 Memotech MTX 500                     */
807//128u4   DRIVER( rs128 )      /* 1984 Memotech RS 128                        */
805   DRIVER( mtx512 )   /* 1983 Memotech MTX 512                     */
806   DRIVER( mtx500 )   /* 1983 Memotech MTX 500                     */
807   DRIVER( rs128 )      /* 1984 Memotech RS 128                        */
808808
809809   /* MATTEL */
810810//128u4   DRIVER( intvkbd )   /* 1981 - Mattel Intellivision Keyboard Component   */
src/mess/machine/aim65.c
r3646r3647
160160
161161void aim65_riot_irq(const device_config *device, int state)
162162{
163   cpunum_set_input_line(device->machine, 0, M6502_IRQ_LINE, state ? HOLD_LINE : CLEAR_LINE);
163   cpu_set_input_line(device->machine->cpu[0], M6502_IRQ_LINE, state ? HOLD_LINE : CLEAR_LINE);
164164}
165165
166166
src/mess/machine/comx35.c
r3646r3647
567567   memory_configure_bank(machine, 2, 0, 1, memory_region(machine, CDP1802_TAG) + 0x1000, 0); // normal ROM
568568   memory_configure_bank(machine, 2, 1, 1, memory_region(machine, CDP1802_TAG) + 0xe000, 0); // expansion box ROM
569569
570   memory_configure_bank(3, 0, 1, memory_region(machine, CDP1802_TAG) + 0xe000, 0);
570   memory_configure_bank(machine, 3, 0, 1, memory_region(machine, CDP1802_TAG) + 0xe000, 0);
571571   memory_set_bank(3, 0);
572572
573573   if (expansion_box_installed(machine))
src/mess/machine/lynx.c
r3646r3647
13641364{
13651365   if ( ( lynx_timer[which].cntrl1 & 0x80 ) && ( which != 4 ) ) { // irq flag handling later
13661366      mikey.data[0x81] |= ( 1 << which );
1367      cpunum_set_input_line(machine, 0, M65SC02_IRQ_LINE, ASSERT_LINE);
1367      cpu_set_input_line(machine->cpu[0], M65SC02_IRQ_LINE, ASSERT_LINE);
13681368   }
13691369   switch ( which ) {
13701370   case 0:
r3646r3647
15451545   if (uart.serctl & 0x80)
15461546   {
15471547      mikey.data[0x81] |= 0x10;
1548      cpunum_set_input_line(machine, 0, M65SC02_IRQ_LINE, ASSERT_LINE);
1548      cpu_set_input_line(machine->cpu[0], M65SC02_IRQ_LINE, ASSERT_LINE);
15491549    }
15501550}
15511551
r3646r3647
17011701      mikey.data[0x81] &= ~data; // clear interrupt source
17021702      logerror("mikey write %.2x %.2x\n", offset, data);
17031703      if (!mikey.data[0x81])
1704         cpunum_set_input_line(machine, 0, M65SC02_IRQ_LINE, CLEAR_LINE);
1704         cpu_set_input_line(machine->cpu[0], M65SC02_IRQ_LINE, CLEAR_LINE);
17051705      break;
17061706
17071707   /* Is this correct? */
r3646r3647
17941794   memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xfd00, 0xfdff, 0, 0, (data & 2) ? SMH_BANK2 : mikey_write);
17951795
17961796   if (data & 1)
1797      memory_set_bankptr(1, lynx_mem_fc00);
1797      memory_set_bankptr(machine, 1, lynx_mem_fc00);
17981798   if (data & 2)
1799      memory_set_bankptr(2, lynx_mem_fd00);
1800   memory_set_bank(3, (data & 4) ? 1 : 0);
1801   memory_set_bank(4, (data & 8) ? 1 : 0);
1799      memory_set_bankptr(machine, 2, lynx_mem_fd00);
1800   memory_set_bank(machine, 3, (data & 4) ? 1 : 0);
1801   memory_set_bank(machine, 4, (data & 8) ? 1 : 0);
18021802}
18031803
18041804static void lynx_reset(running_machine *machine)
r3646r3647
18061806   int i;
18071807   lynx_memory_config_w(machine, 0, 0);
18081808
1809   cpunum_set_input_line(machine, 0, M65SC02_IRQ_LINE, CLEAR_LINE);
1809   cpu_set_input_line(machine->cpu[0], M65SC02_IRQ_LINE, CLEAR_LINE);
18101810
18111811   memset(&suzy, 0, sizeof(suzy));
18121812   memset(&mikey, 0, sizeof(mikey));
r3646r3647
18491849   state_save_register_global_pointer(lynx_mem_fe00, lynx_mem_fe00_size);
18501850   state_save_register_postload(machine, lynx_postload, NULL);
18511851
1852   memory_configure_bank(3, 0, 1, memory_region(machine, "main") + 0x0000, 0);
1853   memory_configure_bank(3, 1, 1, lynx_mem_fe00, 0);
1854   memory_configure_bank(4, 0, 1, memory_region(machine, "main") + 0x01fa, 0);
1855   memory_configure_bank(4, 1, 1, lynx_mem_fffa, 0);
1852   memory_configure_bank(machine, 3, 0, 1, memory_region(machine, "main") + 0x0000, 0);
1853   memory_configure_bank(machine, 3, 1, 1, lynx_mem_fe00, 0);
1854   memory_configure_bank(machine, 4, 0, 1, memory_region(machine, "main") + 0x01fa, 0);
1855   memory_configure_bank(machine, 4, 1, 1, lynx_mem_fffa, 0);
18561856
18571857   memset(&suzy, 0, sizeof(suzy));
18581858
src/mess/machine/mtx.c
r3646r3647
6363
6464INTERRUPT_GEN( mtx_interrupt )
6565{
66   TMS9928A_interrupt(machine);
66   TMS9928A_interrupt(device->machine);
6767}
6868
6969
r3646r3647
134134READ8_HANDLER( mtx_strobe_r )
135135{
136136   if (mtx_prt_strobe == 0)
137      printer_output(mtx_printer_image(machine), mtx_prt_data);
137      printer_output(mtx_printer_image(space->machine), mtx_prt_data);
138138
139139   mtx_prt_strobe = 1;
140140
r3646r3647
146146{
147147   mtx_prt_strobe = 0;
148148
149   return MTX_PRT_NOERROR | (printer_is_ready(mtx_printer_image(machine))
149   return MTX_PRT_NOERROR | (printer_is_ready(mtx_printer_image(space->machine))
150150         ? MTX_PRT_SELECTED : 0);
151151}
152152
r3646r3647
172172{
173173   UINT8 data = 0xff;
174174
175   if (!(key_sense & 0x01)) data &= input_port_read(machine, "keyboard_low_0");
176   if (!(key_sense & 0x02)) data &= input_port_read(machine, "keyboard_low_1");
177   if (!(key_sense & 0x04)) data &= input_port_read(machine, "keyboard_low_2");
178   if (!(key_sense & 0x08)) data &= input_port_read(machine, "keyboard_low_3");
179   if (!(key_sense & 0x10)) data &= input_port_read(machine, "keyboard_low_4");
180   if (!(key_sense & 0x20)) data &= input_port_read(machine, "keyboard_low_5");
181   if (!(key_sense & 0x40)) data &= input_port_read(machine, "keyboard_low_6");
182   if (!(key_sense & 0x80)) data &= input_port_read(machine, "keyboard_low_7");
175   if (!(key_sense & 0x01)) data &= input_port_read(space->machine, "keyboard_low_0");
176   if (!(key_sense & 0x02)) data &= input_port_read(space->machine, "keyboard_low_1");
177   if (!(key_sense & 0x04)) data &= input_port_read(space->machine, "keyboard_low_2");
178   if (!(key_sense & 0x08)) data &= input_port_read(space->machine, "keyboard_low_3");
179   if (!(key_sense & 0x10)) data &= input_port_read(space->machine, "keyboard_low_4");
180   if (!(key_sense & 0x20)) data &= input_port_read(space->machine, "keyboard_low_5");
181   if (!(key_sense & 0x40)) data &= input_port_read(space->machine, "keyboard_low_6");
182   if (!(key_sense & 0x80)) data &= input_port_read(space->machine, "keyboard_low_7");
183183
184184   return data;
185185}
186186
187187READ8_HANDLER( mtx_key_hi_r )
188188{
189   UINT8 data = input_port_read(machine, "country_code");
189   UINT8 data = input_port_read(space->machine, "country_code");
190190
191   if (!(key_sense & 0x01)) data &= input_port_read(machine, "keyboard_high_0");
192   if (!(key_sense & 0x02)) data &= input_port_read(machine, "keyboard_high_1");
193   if (!(key_sense & 0x04)) data &= input_port_read(machine, "keyboard_high_2");
194   if (!(key_sense & 0x08)) data &= input_port_read(machine, "keyboard_high_3");
195   if (!(key_sense & 0x10)) data &= input_port_read(machine, "keyboard_high_4");
196   if (!(key_sense & 0x20)) data &= input_port_read(machine, "keyboard_high_5");
197   if (!(key_sense & 0x40)) data &= input_port_read(machine, "keyboard_high_6");
198   if (!(key_sense & 0x80)) data &= input_port_read(machine, "keyboard_high_7");
191   if (!(key_sense & 0x01)) data &= input_port_read(space->machine, "keyboard_high_0");
192   if (!(key_sense & 0x02)) data &= input_port_read(space->machine, "keyboard_high_1");
193   if (!(key_sense & 0x04)) data &= input_port_read(space->machine, "keyboard_high_2");
194   if (!(key_sense & 0x08)) data &= input_port_read(space->machine, "keyboard_high_3");
195   if (!(key_sense & 0x10)) data &= input_port_read(space->machine, "keyboard_high_4");
196   if (!(key_sense & 0x20)) data &= input_port_read(space->machine, "keyboard_high_5");
197   if (!(key_sense & 0x40)) data &= input_port_read(space->machine, "keyboard_high_6");
198   if (!(key_sense & 0x80)) data &= input_port_read(space->machine, "keyboard_high_7");
199199
200200   return data;
201201}
r3646r3647
211211static void mtx_ctc_interrupt(const device_config *device, int state)
212212{
213213//  logerror("mtx_ctc_interrupt: %02x\n", state);
214   cpunum_set_input_line(device->machine, 0, 0, state);
214   cpu_set_input_line(device->machine->cpu[0], 0, state);
215215}
216216
217217READ8_DEVICE_HANDLER( mtx_ctc_r )
r3646r3647
312312   UINT8 ram_page = data >> 0 & 0x0f;
313313
314314   /* set rom bank (switches between basic and assembler rom or cartridges) */
315   memory_set_bank(machine, 2, rom_page);
315   memory_set_bank(space->machine, 2, rom_page);
316316
317317   /* set ram bank, for invalid pages a nop-handler will be installed */
318318   if (ram_page >= mess_ram_size/0x8000)
319319   {
320      memory_install_readwrite8_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x4000, 0x7fff, 0, 0, SMH_NOP, SMH_NOP);
321      memory_install_readwrite8_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x8000, 0xbfff, 0, 0, SMH_NOP, SMH_NOP);
320      memory_install_readwrite8_handler(cpu_get_address_space(space->machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x4000, 0x7fff, 0, 0, SMH_NOP, SMH_NOP);
321      memory_install_readwrite8_handler(cpu_get_address_space(space->machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x8000, 0xbfff, 0, 0, SMH_NOP, SMH_NOP);
322322   }
323323   else if (ram_page + 1 == mess_ram_size/0x8000)
324324   {
325      memory_install_readwrite8_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x4000, 0x7fff, 0, 0, SMH_NOP, SMH_NOP);
326      memory_install_readwrite8_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x8000, 0xbfff, 0, 0, SMH_BANK4, SMH_BANK4);
327      memory_set_bank(4, ram_page);
325      memory_install_readwrite8_handler(cpu_get_address_space(space->machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x4000, 0x7fff, 0, 0, SMH_NOP, SMH_NOP);
326      memory_install_readwrite8_handler(cpu_get_address_space(space->machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x8000, 0xbfff, 0, 0, SMH_BANK4, SMH_BANK4);
327      memory_set_bank(space->machine, 4, ram_page);
328328   }
329329   else
330330   {
331      memory_install_readwrite8_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x4000, 0x7fff, 0, 0, SMH_BANK3, SMH_BANK3);
332      memory_install_readwrite8_handler(cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x8000, 0xbfff, 0, 0, SMH_BANK4, SMH_BANK4);
333      memory_set_bank(3, ram_page);
334      memory_set_bank(4, ram_page);
331      memory_install_readwrite8_handler(cpu_get_address_space(space->machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x4000, 0x7fff, 0, 0, SMH_BANK3, SMH_BANK3);
332      memory_install_readwrite8_handler(cpu_get_address_space(space->machine->cpu[0], ADDRESS_SPACE_PROGRAM), 0x8000, 0xbfff, 0, 0, SMH_BANK4, SMH_BANK4);
333      memory_set_bank(space->machine, 3, ram_page);
334      memory_set_bank(space->machine, 4, ram_page);
335335   }
336336}
337337
r3646r3647
348348   /* configure memory */
349349   memory_set_bankptr(machine, 1, memory_region(machine, "user1"));
350350   memory_configure_bank(machine, 2, 0, 8, memory_region(machine, "user2"), 0x2000);
351   memory_configure_bank(3, 0, mess_ram_size/0x4000/2, mess_ram, 0x4000);
352   memory_configure_bank(4, 0, mess_ram_size/0x4000/2, mess_ram + mess_ram_size/2, 0x4000);
351   memory_configure_bank(machine, 3, 0, mess_ram_size/0x4000/2, mess_ram, 0x4000);
352   memory_configure_bank(machine, 4, 0, mess_ram_size/0x4000/2, mess_ram + mess_ram_size/2, 0x4000);
353353
354354   /* setup tms9928a */
355355   TMS9928A_configure(&tms9928a_interface);
r3646r3647
357357
358358DRIVER_INIT( rs128 )
359359{
360   const device_config *device;
361   const address_space *space;
362
360363   DRIVER_INIT_CALL(mtx512);
361364
362365   /* install handlers for dart interface */
363   memory_install_readwrite8_device_handler(device_list_find_by_tag(machine->config->devicelist, Z80DART, "z80dart"), 0, ADDRESS_SPACE_IO, 0x0c, 0x0d, 0, 0, mtx_dart_data_r, mtx_dart_data_w);
364   memory_install_readwrite8_device_handler(device_list_find_by_tag(machine->config->devicelist, Z80DART, "z80dart"), 0, ADDRESS_SPACE_IO, 0x0e, 0x0f, 0, 0, mtx_dart_control_r, mtx_dart_control_w);
366   device = device_list_find_by_tag(machine->config->devicelist, Z80DART, "z80dart");
367   space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_IO);
368   memory_install_readwrite8_device_handler(space, device, 0x0c, 0x0d, 0, 0, mtx_dart_data_r, mtx_dart_data_w);
369   memory_install_readwrite8_device_handler(space, device, 0x0e, 0x0f, 0, 0, mtx_dart_control_r, mtx_dart_control_w);
365370}
366371
367372MACHINE_RESET( rs128 )
src/mess/machine/kc.c
r3646r3647
17251725
17261726static Z80PIO_ON_INT_CHANGED( kc85_pio_interrupt )
17271727{
1728   cpunum_set_input_line(device->machine, 0, 0, state);
1728   cpu_set_input_line(device->machine->cpu[0], 0, state);
17291729}
17301730
17311731static void kc85_ctc_interrupt(const device_config *device, int state)
17321732{
1733   cpunum_set_input_line(device->machine, 0, 1, state);
1733   cpu_set_input_line(device->machine->cpu[0], 1, state);
17341734}
17351735
17361736/* callback for ardy output from PIO */
src/mess/mess.mak
r3646r3647
400400   $(MESSOBJ)/magnavox.a \
401401   $(MESSOBJ)/mbee.a \
402402   $(MESSOBJ)/mc10.a \
403   $(MESSOBJ)/memotech.a \
403404   $(MESSOBJ)/mikro80.a \
404405   $(MESSOBJ)/mk2.a \
405406   $(MESSOBJ)/motorola.a \
r3646r3647
452453#   $(MESSOBJ)/kaypro.a \
453454#   $(MESSOBJ)/kim1.a \
454455#   $(MESSOBJ)/lynx.a \
455#   $(MESSOBJ)/memotech.a \
456456#   $(MESSOBJ)/mephisto.a \
457457#   $(MESSOBJ)/mk1.a \
458458#   $(MESSOBJ)/multitch.a \
src/mess/drivers/vip.c
r3646r3647
379379
380380static CDP1861_ON_INT_CHANGED( vip_int_w )
381381{
382   cpunum_set_input_line(device->machine, 0, CDP1802_INPUT_LINE_INT, level);
382   cpu_set_input_line(device->machine->cpu[0], CDP1802_INPUT_LINE_INT, level);
383383}
384384
385385static CDP1861_ON_DMAO_CHANGED( vip_dmao_w )
386386{
387   cpunum_set_input_line(device->machine, 0, CDP1802_INPUT_LINE_DMAOUT, level);
387   cpu_set_input_line(device->machine->cpu[0], CDP1802_INPUT_LINE_DMAOUT, level);
388388}
389389
390390static CDP1861_ON_EFX_CHANGED( vip_efx_w )
src/mess/drivers/pasogo.c
r3646r3647
426426
427427
428428static PIC8259_SET_INT_LINE( pasogo_pic8259_set_int_line ) {
429   cpunum_set_input_line(device->machine, 0, 0, interrupt ? HOLD_LINE : CLEAR_LINE);
429   cpu_set_input_line(device->machine->cpu[0], 0, interrupt ? HOLD_LINE : CLEAR_LINE);
430430}
431431
432432
src/mess/drivers/atarist.c
r3646r3647
13781378
13791379static MC68901_ON_IRQ_CHANGED( mfp_interrupt )
13801380{
1381   cpunum_set_input_line(device->machine, 0, MC68000_IRQ_6, level);
1381   cpu_set_input_line(device->machine->cpu[0], MC68000_IRQ_6, level);
13821382}
13831383
13841384static UINT8 mfp_rx, mfp_tx;
r3646r3647
14411441
14421442   memory_install_readwrite16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xfa0000, 0xfbffff, 0, 0, SMH_UNMAP, SMH_UNMAP);
14431443
1444   memory_configure_bank(3, 0, 1, RAM + 0xfa0000, 0);
1444   memory_configure_bank(machine, 3, 0, 1, RAM + 0xfa0000, 0);
14451445   memory_set_bank(3, 0);
14461446}
14471447
r3646r3647
16091609
16101610   memory_install_readwrite16_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xfa0000, 0xfbffff, 0, 0, SMH_UNMAP, SMH_UNMAP);
16111611
1612   memory_configure_bank(3, 0, 1, RAM + 0xfa0000, 0);
1612   memory_configure_bank(machine, 3, 0, 1, RAM + 0xfa0000, 0);
16131613   memory_set_bank(3, 0);
16141614}
16151615
src/mess/drivers/studio2.c
r3646r3647
224224
225225static CDP1861_ON_INT_CHANGED( studio2_int_w )
226226{
227   cpunum_set_input_line(device->machine, 0, CDP1802_INPUT_LINE_INT, level);
227   cpu_set_input_line(device->machine->cpu[0], CDP1802_INPUT_LINE_INT, level);
228228}
229229
230230static CDP1861_ON_DMAO_CHANGED( studio2_dmao_w )
231231{
232   cpunum_set_input_line(device->machine, 0, CDP1802_INPUT_LINE_DMAOUT, level);
232   cpu_set_input_line(device->machine->cpu[0], CDP1802_INPUT_LINE_DMAOUT, level);
233233}
234234
235235static CDP1861_ON_EFX_CHANGED( studio2_efx_w )
r3646r3647
259259
260260static CDP1864_ON_INT_CHANGED( mpt02_int_w )
261261{
262   cpunum_set_input_line(device->machine, 0, CDP1802_INPUT_LINE_INT, level);
262   cpu_set_input_line(device->machine->cpu[0], CDP1802_INPUT_LINE_INT, level);
263263}
264264
265265static CDP1864_ON_DMAO_CHANGED( mpt02_dmao_w )
266266{
267   cpunum_set_input_line(device->machine, 0, CDP1802_INPUT_LINE_DMAOUT, level);
267   cpu_set_input_line(device->machine->cpu[0], CDP1802_INPUT_LINE_DMAOUT, level);
268268}
269269
270270static CDP1864_ON_EFX_CHANGED( mpt02_efx_w )
src/mess/drivers/tmc2000e.c
r3646r3647
136136
137137static CDP1864_ON_INT_CHANGED( tmc2000e_int_w )
138138{
139   cpunum_set_input_line(device->machine, 0, CDP1802_INPUT_LINE_INT, level);
139   cpu_set_input_line(device->machine->cpu[0], CDP1802_INPUT_LINE_INT, level);
140140}
141141
142142static CDP1864_ON_DMAO_CHANGED( tmc2000e_dmao_w )
143143{
144   cpunum_set_input_line(device->machine, 0, CDP1802_INPUT_LINE_DMAOUT, level);
144   cpu_set_input_line(device->machine->cpu[0], CDP1802_INPUT_LINE_DMAOUT, level);
145145}
146146
147147static CDP1864_ON_EFX_CHANGED( tmc2000e_efx_w )
src/mess/drivers/einstein.c
r3646r3647
408408static void einstein_ctc_interrupt(const device_config *device, int state)
409409{
410410   logerror("ctc irq state: %02x\n",state);
411   cpunum_set_input_line(device->machine, 0, 1, state);
411   cpu_set_input_line(device->machine->cpu[0], 1, state);
412412}
413413
414414static Z80PIO_ON_INT_CHANGED( einstein_pio_interrupt )
415415{
416416   logerror("pio irq state: %02x\n",state);
417   cpunum_set_input_line(device->machine, 0, 3, state);
417   cpu_set_input_line(device->machine->cpu[0], 3, state);
418418}
419419
420420static WRITE8_DEVICE_HANDLER(einstein_serial_transmit_clock)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team