Previous 15994 Revisions Next

r3751 Sunday 7th December, 2008 at 21:46:39 UTC by Miodrag Milanović
Enabled some drivers
[src/mess]mess.mak messdriv.c
[src/mess/drivers]x68k.c
[src/mess/formats]mz_cas.c
[src/mess/machine]hd63450.c mz700.c pc1401.c pc1403.c x68k_hdc.c
[src/mess/video]i8275.c pecom.c x68k.c

src/mess/video/i8275.c
r3750r3751
508508   assert(i8275->screen != NULL);
509509
510510   // register for state saving
511   state_save_register_item(machine, "I8275", NULL, 0, i8275->status_reg);
512   state_save_register_item(machine, "I8275", NULL, 0, i8275->num_of_params);
513   state_save_register_item(machine, "I8275", NULL, 0, i8275->current_command);
514   state_save_register_item(machine, "I8275", NULL, 0, i8275->param_type);
511   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->status_reg);
512   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->num_of_params);
513   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->current_command);
514   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->param_type);
515515
516   state_save_register_item(machine, "I8275", NULL, 0, i8275->cursor_col);
517   state_save_register_item(machine, "I8275", NULL, 0, i8275->cursor_row);
516   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->cursor_col);
517   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->cursor_row);
518518
519   state_save_register_item(machine, "I8275", NULL, 0, i8275->light_pen_col);
520   state_save_register_item(machine, "I8275", NULL, 0, i8275->light_pen_row);
519   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->light_pen_col);
520   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->light_pen_row);
521521
522   state_save_register_item(machine, "I8275", NULL, 0, i8275->rows_type);
523   state_save_register_item(machine, "I8275", NULL, 0, i8275->chars_per_row);
524   state_save_register_item(machine, "I8275", NULL, 0, i8275->vert_retrace_rows);
525   state_save_register_item(machine, "I8275", NULL, 0, i8275->rows_per_frame);
526   state_save_register_item(machine, "I8275", NULL, 0, i8275->undeline_line_num);
527   state_save_register_item(machine, "I8275", NULL, 0, i8275->lines_per_row);
528   state_save_register_item(machine, "I8275", NULL, 0, i8275->line_counter_mode);
529   state_save_register_item(machine, "I8275", NULL, 0, i8275->field_attribute_mode);
530   state_save_register_item(machine, "I8275", NULL, 0, i8275->cursor_format);
531   state_save_register_item(machine, "I8275", NULL, 0, i8275->hor_retrace_count);
522   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->rows_type);
523   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->chars_per_row);
524   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->vert_retrace_rows);
525   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->rows_per_frame);
526   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->undeline_line_num);
527   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->lines_per_row);
528   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->line_counter_mode);
529   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->field_attribute_mode);
530   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->cursor_format);
531   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->hor_retrace_count);
532532
533   state_save_register_item(machine, "I8275", NULL, 0, i8275->burst_space_code);
534   state_save_register_item(machine, "I8275", NULL, 0, i8275->burst_count_code);
533   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->burst_space_code);
534   state_save_register_item(device->machine, "I8275", NULL, 0, i8275->burst_count_code);
535535   return DEVICE_START_OK;
536536}
537537
src/mess/video/x68k.c
r3750r3751
456456      if(data & 0x08)  // text screen raster copy
457457      {
458458         x68k_crtc_text_copy((sys.crtc.reg[22] & 0xff00) >> 8,(sys.crtc.reg[22] & 0x00ff));
459         timer_set(machine, ATTOTIME_IN_MSEC(1), NULL, 0x02,x68k_crtc_operation_end);  // time taken to do operation is a complete guess.
459         timer_set(space->machine, ATTOTIME_IN_MSEC(1), NULL, 0x02,x68k_crtc_operation_end);  // time taken to do operation is a complete guess.
460460      }
461461      if(data & 0x02)  // high-speed graphic screen clear
462462      {
r3750r3751
482482         {
483483            bitmap_fill(x68k_gfx_3_bitmap_16,&rect,0);
484484         }
485         timer_set(machine, ATTOTIME_IN_MSEC(10), NULL, 0x02,x68k_crtc_operation_end);  // time taken to do operation is a complete guess.
485         timer_set(space->machine, ATTOTIME_IN_MSEC(10), NULL, 0x02,x68k_crtc_operation_end);  // time taken to do operation is a complete guess.
486486//         popmessage("CRTC: High-speed gfx screen clear [0x%02x]",sys.crtc.reg[21] & 0x0f);
487487      }
488488      break;
src/mess/video/pecom.c
r3750r3751
108108   state->cdp1869 = devtag_get_device(machine, CDP1869_VIDEO, CDP1869_TAG);
109109
110110   /* register for state saving */
111   state_save_register_global(state->cdp1802_mode);
112   state_save_register_global(state->dma);
111   state_save_register_global(machine, state->cdp1802_mode);
112   state_save_register_global(machine, state->dma);
113113   state_save_register_global_pointer(machine, state->page_ram, PECOM_PAGE_RAM_SIZE);   
114114}
115115
src/mess/messdriv.c
r3750r3751
493493//   DRIVER( megaopd )
494494
495495   /* SHARP */
496//0128u5   DRIVER( pc1251 )   /* Pocket Computer 1251                        */
497//0128u5   DRIVER( trs80pc3 )   /* Tandy TRS80 PC-3                           */
498//0128u5   DRIVER( pc1401 )   /* Pocket Computer 1401                        */
499//0128u5   DRIVER( pc1402 )   /* Pocket Computer 1402                        */
500//0128u5   DRIVER( pc1350 )   /* Pocket Computer 1350                        */
501//0128u5   DRIVER( pc1403 )   /* Pocket Computer 1403                        */
502//0128u5   DRIVER( pc1403h )   /* Pocket Computer 1403H                     */
496   DRIVER( pc1251 )   /* Pocket Computer 1251                        */
497   DRIVER( trs80pc3 )   /* Tandy TRS80 PC-3                           */
498   DRIVER( pc1401 )   /* Pocket Computer 1401                        */
499   DRIVER( pc1402 )   /* Pocket Computer 1402                        */
500   DRIVER( pc1350 )   /* Pocket Computer 1350                        */
501   DRIVER( pc1403 )   /* Pocket Computer 1403                        */
502   DRIVER( pc1403h )   /* Pocket Computer 1403H                     */
503503
504//0128u5   DRIVER( mz700 )      /* 1982 Sharp MZ700                           */
505//0128u5   DRIVER( mz700j )   /* 1982 Sharp MZ700 Japan                     */
506//0128u5   DRIVER( mz800 )      /* 1982 Sharp MZ800                           */
507   
508//0128u5   DRIVER( mz80kj )   /* 1979 Sharp MZ80K                           */
509//0128u5   DRIVER( mz80k )      /* 1979 Sharp MZ80K                           */
504   DRIVER( mz700 )      /* 1982 Sharp MZ700                           */
505   DRIVER( mz700j )   /* 1982 Sharp MZ700 Japan                     */
506   DRIVER( mz800 )      /* 1982 Sharp MZ800                           */
510507
511//0128u5   DRIVER( x68000 )   /* Sharp X68000 (1987)                        */
508   DRIVER( mz80kj )   /* 1979 Sharp MZ80K                           */
509   DRIVER( mz80k )      /* 1979 Sharp MZ80K                           */
512510
511   DRIVER( x68000 )   /* Sharp X68000 (1987)                        */
512
513513   /* SILICON GRAPHICS */
514514//0128u5   DRIVER( ip204415 )   /* IP20 Indigo2                              */
515515//0128u5   DRIVER( ip225015 )
r3750r3751
943943//0128u5   DRIVER( super80v )
944944
945945   /* Galeb */
946//0128u5   DRIVER( galeb )
946   DRIVER( galeb )
947947
948948   /* Orao */
949//0128u5   DRIVER( orao )
950//0128u5   DRIVER( orao103 )
949   DRIVER( orao )
950   DRIVER( orao103 )
951951
952952   /* UT-88 */
953//0128u5   DRIVER( ut88 )
954//0128u5   DRIVER( ut88mini )
953   DRIVER( ut88 )
954   DRIVER( ut88mini )
955955
956956   /* Mikro-80 */
957//0128u5   DRIVER( mikro80 )
958//0128u5   DRIVER( radio99 )
957   DRIVER( mikro80 )
958   DRIVER( radio99 )
959959
960960   /* Specialist */
961//0128u5   DRIVER( special )
962//0128u5   DRIVER( specialp )
963//0128u5   DRIVER( lik )
964//0128u5   DRIVER( erik )
965//0128u5   DRIVER( specimx )
961   DRIVER( special )
962   DRIVER( specialp )
963   DRIVER( lik )
964   DRIVER( erik )
965   DRIVER( specimx )
966966
967967   /* Orion */
968//0128u5   DRIVER( orion128 )
969//0128u5   DRIVER( orionms )
970//0128u5   DRIVER( orionz80 )
971//0128u5   DRIVER( orionide )
972//0128u5   DRIVER( orionzms )
973//0128u5   DRIVER( orionidm )
974//0128u5   DRIVER( orionpro )
968   DRIVER( orion128 )
969   DRIVER( orionms )
970   DRIVER( orionz80 )
971   DRIVER( orionide )
972   DRIVER( orionzms )
973   DRIVER( orionidm )
974   DRIVER( orionpro )
975975
976976   /* BK */
977//0128u5   DRIVER( bk0010 )
978//0128u5   DRIVER( bk001001 )
979//0128u5   DRIVER( bk0010fd )
977   DRIVER( bk0010 )
978   DRIVER( bk001001 )
979   DRIVER( bk0010fd )
980980
981981   /* Bashkiria-2M */
982//0128u5   DRIVER( b2m )
983//0128u5   DRIVER( b2mrom )
982   DRIVER( b2m )
983   DRIVER( b2mrom )
984984
985985   /* Radio-86RK */
986//0128u5   DRIVER( radio86 )
987//0128u5   DRIVER( radio16 )
988//0128u5   DRIVER( radio4k )
989//0128u5   DRIVER( rk7007 )
990//0128u5   DRIVER( rk700716 )
991//0128u5   DRIVER( radiorom )
992//0128u5   DRIVER( radioram )
993//0128u5   DRIVER( spektr01 )
994//0128u5   DRIVER( apogee )
995//0128u5   DRIVER( mikrosha )
996//0128u5   DRIVER( partner )
986   DRIVER( radio86 )
987   DRIVER( radio16 )
988   DRIVER( radio4k )
989   DRIVER( rk7007 )
990   DRIVER( rk700716 )
991   DRIVER( radiorom )
992   DRIVER( radioram )
993   DRIVER( spektr01 )
994   DRIVER( apogee )
995   DRIVER( mikrosha )
996   DRIVER( partner )
997997
998998     /* Homelab */ 
999//0128u5   DRIVER (homelab2)
1000//0128u5   DRIVER (homelab3)
1001//0128u5   DRIVER (homelab4)
999   DRIVER (homelab2)
1000   DRIVER (homelab3)
1001   DRIVER (homelab4)
10021002   
10031003   /* Irisha */
1004//0128u5   DRIVER (irisha)
1004   DRIVER (irisha)
10051005   
10061006   /* PK-8020 */
1007//0128u5   DRIVER (korvet)
1007   DRIVER (korvet)
10081008
10091009   /* Vector-06c */
1010//0128u5   DRIVER (vector06)
1010   DRIVER (vector06)
10111011
10121012   /* Robotron 1715 */
1013//0128u5   DRIVER (rt1715)
1014//0128u5   DRIVER (rt1715w)
1013   DRIVER (rt1715)
1014   DRIVER (rt1715w)
10151015
10161016   /* PP-01 */
1017//0128u5   DRIVER (pp01)
1017   DRIVER (pp01)
10181018
10191019   /* Ondra */
1020//0128u5   DRIVER (ondrat)
1021//0128u5   DRIVER (ondrav)
1020   DRIVER (ondrat)
1021   DRIVER (ondrav)
10221022
10231023   /* SAPI-1 */
1024//0128u5   DRIVER (sapi1)
1024   DRIVER (sapi1)
10251025
10261026  /* Spectrum clones */
10271027     
r3750r3751
10551055//0128u5   DRIVER( compani1 )  /* 1990 Kompanion 1              */
10561056
10571057   /* Kramer */
1058//0128u5   DRIVER(kramermc) /* 1987 Kramer MC            */
1058   DRIVER(kramermc) /* 1987 Kramer MC            */
10591059
10601060   /* Ei Nis */
1061//0128u5   DRIVER(pecom64)
1061   DRIVER(pecom64)
10621062     
10631063   /* Bondwell */
10641064//0128u5   DRIVER( bw2 )
src/mess/machine/pc1401.c
r3750r3751
3636
3737void pc1401_outc(int data)
3838{
39   logerror("%g outc %.2x\n", attotime_to_double(timer_get_time(machine)), data);
39   //logerror("%g outc %.2x\n", attotime_to_double(timer_get_time(machine)), data);
4040   pc1401_portc=data;
4141}
4242
src/mess/machine/x68k_hdc.c
r3750r3751
123123
124124         sasi->req = 0;
125125         sasi->status_port &= ~0x01;
126         timer_set(ATTOTIME_IN_NSEC(450),sasi,0,req_delay);
126         timer_set(device->machine,ATTOTIME_IN_NSEC(450),sasi,0,req_delay);
127127         sasi->transfer_byte_count++;
128128         if(sasi->transfer_byte_count >= sasi->transfer_byte_total)
129129         {
r3750r3751
161161         // reset REQ temporarily
162162         sasi->req = 0;
163163         sasi->status_port &= ~0x01;
164         timer_set(ATTOTIME_IN_NSEC(450),sasi,0,req_delay);
164         timer_set(device->machine,ATTOTIME_IN_NSEC(450),sasi,0,req_delay);
165165
166166         sasi->command_byte_count++;
167167         if(sasi->command_byte_count >= sasi->command_byte_total)
r3750r3751
306306            sasi->status_port |= 0x08;
307307            sasi->command_byte_count = 0;
308308            sasi->command_byte_total = 0;
309            timer_set(ATTOTIME_IN_NSEC(45),sasi,0,req_delay);
309            timer_set(device->machine,ATTOTIME_IN_NSEC(45),sasi,0,req_delay);
310310         }
311311      }
312312      break;
r3750r3751
357357         // reset REQ temporarily
358358         sasi->req = 0;
359359         sasi->status_port &= ~0x01;
360         timer_set(ATTOTIME_IN_NSEC(450),sasi,0,req_delay);
360         timer_set(device->machine,ATTOTIME_IN_NSEC(450),sasi,0,req_delay);
361361
362362         return sasi->status;
363363      }
r3750r3751
413413
414414         sasi->req = 0;
415415         sasi->status_port &= ~0x01;
416         timer_set(ATTOTIME_IN_NSEC(450),sasi,0,req_delay);
416         timer_set(device->machine,ATTOTIME_IN_NSEC(450),sasi,0,req_delay);
417417         sasi->transfer_byte_count++;
418418         if(sasi->transfer_byte_count >= sasi->transfer_byte_total)
419419         {
src/mess/machine/mz700.c
r3750r3751
2828#define VERBOSE 0
2929#endif
3030
31#define LOG(N,M,A)   \
31#define LOG(N,M,A,mac)   \
3232   do { \
3333      if(VERBOSE>=N) \
3434      { \
3535         if( M ) \
36            logerror("%11.6f: %-24s",attotime_to_double(timer_get_time(machine)), (const char*)M ); \
36            logerror("%11.6f: %-24s",attotime_to_double(timer_get_time(mac)), (const char*)M ); \
3737         logerror A; \
3838      } \
3939   } while (0)
r3750r3751
137137static READ8_DEVICE_HANDLER ( pio_port_a_r )
138138{
139139   UINT8 data = pio_port_a_output;
140   LOG(2,"mz700_pio_port_a_r",("%02X\n", data));
140   LOG(2,"mz700_pio_port_a_r",("%02X\n", data),device->machine);
141141   return data;
142142}
143143
r3750r3751
150150
151151    demux_LS145 = pio_port_a_output & 15;
152152    data = input_port_read(device->machine, keynames[demux_LS145]);
153   LOG(2,"mz700_pio_port_b_r",("%02X\n", data));
153   LOG(2,"mz700_pio_port_b_r",("%02X\n", data),device->machine);
154154
155155    return data;
156156}
r3750r3751
176176
177177    data |= input_port_read(device->machine, "STATUS");   /* get VBLANK in bit 7 */
178178
179   LOG(2,"mz700_pio_port_c_r",("%02X\n", data));
179   LOG(2,"mz700_pio_port_c_r",("%02X\n", data),device->machine);
180180
181181    return data;
182182}
183183
184184static WRITE8_DEVICE_HANDLER (pio_port_a_w )
185185{
186   LOG(2,"mz700_pio_port_a_w",("%02X\n", data));
186   LOG(2,"mz700_pio_port_a_w",("%02X\n", data),device->machine);
187187   pio_port_a_output = data;
188188}
189189
r3750r3751
199199    * bit 1   demux LS145 B
200200    * bit 0   demux LS145 A
201201     */
202   LOG(2,"mz700_pio_port_b_w",("%02X\n", data));
202   LOG(2,"mz700_pio_port_b_w",("%02X\n", data),device->machine);
203203
204204   /* enable/disable NE556 cursor flash timer */
205205    timer_enable(ne556_timer[0], (data & 0x80) ? 0 : 1);
r3750r3751
213213     * bit 1 out    tape data (WDATA)
214214     * bit 0 out    unused
215215     */
216   LOG(2,"mz700_pio_port_c_w",("%02X\n", data));
216   LOG(2,"mz700_pio_port_c_w",("%02X\n", data),device->machine);
217217   pio_port_c_output = data;
218218
219219   cassette_change_state(
r3750r3751
248248      data |= input_port_read(space->machine, "JOY");   /* get joystick ports */
249249      if (video_screen_get_hpos(space->machine->primary_screen) >= visarea->max_x - 32)
250250         data |= 0x80;
251      LOG(1,"mz700_e008_r",("%02X\n", data));
251      LOG(1,"mz700_e008_r",("%02X\n", data),space->machine);
252252        break;
253253    }
254254    return data;
r3750r3751
269269      break;
270270
271271   case 8:
272      LOG(1,"mz700_e008_w",("%02X\n", data));
272      LOG(1,"mz700_e008_w",("%02X\n", data),space->machine);
273273      pit8253_gate_w((device_config*)device_list_find_by_tag( space->machine->config->devicelist, PIT8253, "pit8253" ), 0, data & 1);
274274        break;
275275   }
r3750r3751
430430    switch (offset)
431431   {
432432   case 0: /* 0000-0FFF RAM */
433      LOG(1,"mz700_bank_w",("0: 0000-0FFF RAM\n"));
433      LOG(1,"mz700_bank_w",("0: 0000-0FFF RAM\n"),space->machine);
434434      bank1_RAM(space->machine, mem);
435435      mz700_locked = 0;
436436        break;
437437
438438   case 1: /* D000-FFFF RAM */
439      LOG(1,"mz700_bank_w",("1: D000-FFFF RAM\n"));
439      LOG(1,"mz700_bank_w",("1: D000-FFFF RAM\n"),space->machine);
440440      bank6_RAM(space->machine, mem);
441441      bank7_RAM(space->machine, mem);
442442      bank8_RAM(space->machine, mem);
r3750r3751
445445        break;
446446
447447   case 2: /* 0000-0FFF ROM */
448      LOG(1,"mz700_bank_w",("2: 0000-0FFF ROM\n"));
448      LOG(1,"mz700_bank_w",("2: 0000-0FFF ROM\n"),space->machine);
449449      bank1_ROM(space->machine, mem);
450450      mz700_locked = 0;
451451        break;
452452
453453   case 3: /* D000-FFFF videoram, memory mapped io */
454      LOG(1,"mz700_bank_w",("3: D000-FFFF videoram, memory mapped io\n"));
454      LOG(1,"mz700_bank_w",("3: D000-FFFF videoram, memory mapped io\n"),space->machine);
455455      bank6_VIO(space->machine, mem);
456456      bank7_VIO(space->machine, mem);
457457      bank8_VIO(space->machine, mem);
r3750r3751
460460        break;
461461
462462   case 4: /* 0000-0FFF ROM   D000-FFFF videoram, memory mapped io */
463      LOG(1,"mz700_bank_w",("4: 0000-0FFF ROM; D000-FFFF videoram, memory mapped io\n"));
463      LOG(1,"mz700_bank_w",("4: 0000-0FFF ROM; D000-FFFF videoram, memory mapped io\n"),space->machine);
464464      bank1_ROM(space->machine, mem);
465465      bank6_VIO(space->machine, mem);
466466      bank7_VIO(space->machine, mem);
r3750r3751
470470        break;
471471
472472   case 5: /* 0000-0FFF no chg D000-FFFF locked */
473      LOG(1,"mz700_bank_w",("5: D000-FFFF locked\n"));
473      LOG(1,"mz700_bank_w",("5: D000-FFFF locked\n"),space->machine);
474474      if (mz700_locked == 0)
475475      {
476476         vio_lock = vio_mode;
r3750r3751
482482        break;
483483
484484   case 6: /* 0000-0FFF no chg D000-FFFF unlocked */
485      LOG(1,"mz700_bank_w",("6: D000-FFFF unlocked\n"));
485      LOG(1,"mz700_bank_w",("6: D000-FFFF unlocked\n"),space->machine);
486486      if (mz700_locked == 1)
487487         mz700_bank_w(space, vio_lock, 0); /* old config for D000-DFFF */
488488        break;
r3750r3751
505505 READ8_HANDLER( mz800_crtc_r )
506506{
507507   UINT8 data = 0x00;
508   LOG(1,"mz800_crtc_r",("%02X\n",data));
508   LOG(1,"mz800_crtc_r",("%02X\n",data),space->machine);
509509    return data;
510510}
511511
r3750r3751
541541    switch (offset)
542542    {
543543   case 0: /* 1000-1FFF PCG ROM */
544      LOG(1,"mz800_bank_r",("0: 1000-1FFF PCG ROM"));
544      LOG(1,"mz800_bank_r",("0: 1000-1FFF PCG ROM"),space->machine);
545545        bank2_ROM(space->machine, mem);
546546      if ((mz800_display_mode & 0x08) == 0)
547547      {
r3750r3751
569569        break;
570570
571571    case 1: /* make 1000-1FFF and C000-CFFF RAM */
572      LOG(1,"mz800_bank_r",("1: 1000-1FFF RAM"));
572      LOG(1,"mz800_bank_r",("1: 1000-1FFF RAM"),space->machine);
573573        bank2_RAM(space->machine, mem);
574574      if ((mz800_display_mode & 0x08) == 0)
575575      {
r3750r3751
599599{
600600   UINT8 *mem = memory_region(space->machine, "user1");
601601   UINT8 data = mem[mz800_ramaddr];
602   LOG(2,"mz800_ramdisk_r",("[%04X] -> %02X\n", mz800_ramaddr, data));
602   LOG(2,"mz800_ramdisk_r",("[%04X] -> %02X\n", mz800_ramaddr, data),space->machine);
603603   if (mz800_ramaddr++ == 0)
604      LOG(1,"mz800_ramdisk_r",("address wrap 0000\n"));
604      LOG(1,"mz800_ramdisk_r",("address wrap 0000\n"),space->machine);
605605    return data;
606606}
607607
608608/* port CC */
609609WRITE8_HANDLER( mz800_write_format_w )
610610{
611   LOG(1,"mz800_write_format_w",("%02X\n", data));
611   LOG(1,"mz800_write_format_w",("%02X\n", data),space->machine);
612612}
613613
614614/* port CD */
615615WRITE8_HANDLER( mz800_read_format_w )
616616{
617   LOG(1,"mz800_read_format_w",("%02X\n", data));
617   LOG(1,"mz800_read_format_w",("%02X\n", data),space->machine);
618618}
619619
620620/* port CE
r3750r3751
626626WRITE8_HANDLER( mz800_display_mode_w )
627627{
628628   UINT8 *mem = memory_region(space->machine, "main");
629   LOG(1,"mz800_display_mode_w",("%02X\n", data));
629   LOG(1,"mz800_display_mode_w",("%02X\n", data),space->machine);
630630    mz800_display_mode = data;
631631   if ((mz800_display_mode & 0x08) == 0)
632632   {
r3750r3751
637637/* port CF */
638638WRITE8_HANDLER( mz800_scroll_border_w )
639639{
640   LOG(1,"mz800_scroll_border_w",("%02X\n", data));
640   LOG(1,"mz800_scroll_border_w",("%02X\n", data),space->machine);
641641}
642642
643643/* port D0-D7 */
r3750r3751
658658    switch (offset)
659659    {
660660    case 0: /* 0000-0FFF RAM */
661      LOG(1,"mz800_bank_w",("0: 0000-0FFF RAM\n"));
661      LOG(1,"mz800_bank_w",("0: 0000-0FFF RAM\n"),space->machine);
662662        bank1_RAM(space->machine, mem);
663663        mz800_locked = 0;
664664        break;
665665
666666    case 1: /* D000-FFFF RAM */
667      LOG(1,"mz800_bank_w",("1: D000-FFFF RAM\n"));
667      LOG(1,"mz800_bank_w",("1: D000-FFFF RAM\n"),space->machine);
668668      bank6_RAM(space->machine, mem);
669669      bank7_RAM(space->machine, mem);
670670      bank8_RAM(space->machine, mem);
r3750r3751
673673        break;
674674
675675    case 2: /* 0000-0FFF ROM */
676      LOG(1,"mz800_bank_w",("2: 0000-0FFF ROM\n"));
676      LOG(1,"mz800_bank_w",("2: 0000-0FFF ROM\n"),space->machine);
677677        bank1_ROM(space->machine, mem);
678678        mz800_locked = 0;
679679        break;
680680
681681    case 3: /* D000-FFFF videoram, memory mapped io */
682      LOG(1,"mz800_bank_w",("3: D000-FFFF videoram, memory mapped io\n"));
682      LOG(1,"mz800_bank_w",("3: D000-FFFF videoram, memory mapped io\n"),space->machine);
683683      bank6_VIO(space->machine, mem);
684684      bank7_VIO(space->machine, mem);
685685      bank8_VIO(space->machine, mem);
r3750r3751
688688        break;
689689
690690    case 4: /* 0000-0FFF ROM    D000-FFFF videoram, memory mapped io */
691      LOG(1,"mz800_bank_w",("4: 0000-0FFF ROM; D000-FFFF videoram, memory mapped io\n"));
691      LOG(1,"mz800_bank_w",("4: 0000-0FFF ROM; D000-FFFF videoram, memory mapped io\n"),space->machine);
692692        bank1_ROM(space->machine, mem);
693693      bank6_VIO(space->machine, mem);
694694      bank7_VIO(space->machine, mem);
r3750r3751
698698        break;
699699
700700    case 5: /* 0000-0FFF no chg D000-FFFF locked */
701      LOG(1,"mz800_bank_w",("5: D000-FFFF locked\n"));
701      LOG(1,"mz800_bank_w",("5: D000-FFFF locked\n"),space->machine);
702702        if (mz800_locked == 0)
703703        {
704704            vio_lock = vio_mode;
r3750r3751
710710        break;
711711
712712    case 6: /* 0000-0FFF no chg D000-FFFF unlocked */
713      LOG(1,"mz800_bank_w",("6: D000-FFFF unlocked\n"));
713      LOG(1,"mz800_bank_w",("6: D000-FFFF unlocked\n"),space->machine);
714714        if (mz800_locked == 1)
715715            mz800_bank_w(space, vio_lock, 0); /* old config for D000-DFFF */
716716        break;
r3750r3751
737737WRITE8_HANDLER( mz800_ramdisk_w )
738738{
739739   UINT8 *mem = memory_region(space->machine, "user1");
740   LOG(2,"mz800_ramdisk_w",("[%04X] <- %02X\n", mz800_ramaddr, data));
740   LOG(2,"mz800_ramdisk_w",("[%04X] <- %02X\n", mz800_ramaddr, data),space->machine);
741741   mem[mz800_ramaddr] = data;
742742   if (mz800_ramaddr++ == 0)
743      LOG(1,"mz800_ramdisk_w",("address wrap 0000\n"));
743      LOG(1,"mz800_ramdisk_w",("address wrap 0000\n"),space->machine);
744744}
745745
746746/* port EB */
747747WRITE8_HANDLER( mz800_ramaddr_w )
748748{
749749   mz800_ramaddr = (cpu_get_reg(space->machine->cpu[0], Z80_BC) & 0xff00) | (data & 0xff);
750   LOG(1,"mz800_ramaddr_w",("%04X\n", mz800_ramaddr));
750   LOG(1,"mz800_ramaddr_w",("%04X\n", mz800_ramaddr),space->machine);
751751}
752752
753753/* port F0 */
r3750r3751
756756   if (data & 0x40)
757757   {
758758        mz800_palette_bank = data & 3;
759      LOG(1,"mz800_palette_w",("bank: %d\n", mz800_palette_bank));
759      LOG(1,"mz800_palette_w",("bank: %d\n", mz800_palette_bank),space->machine);
760760    }
761761   else
762762   {
763763      int idx = (data >> 4) & 3;
764764      int val = data & 15;
765      LOG(1,"mz800_palette_w",("palette[%d] <- %d\n", idx, val));
765      LOG(1,"mz800_palette_w",("palette[%d] <- %d\n", idx, val),space->machine);
766766      mz800_palette[idx] = val;
767767   }
768768}
src/mess/machine/pc1403.c
r3750r3751
128128void pc1403_outc(int data)
129129{
130130    pc1403_portc = data;
131    logerror("%g pc %.4x outc %.2x\n", attotime_to_double(timer_get_time(machine)), cpu_get_pc(Machine->cpu[0]), data);
131//    logerror("%g pc %.4x outc %.2x\n", attotime_to_double(timer_get_time(machine)), cpu_get_pc(Machine->cpu[0]), data);
132132}
133133
134134
src/mess/machine/hd63450.c
r3750r3751
2323   // Initialise timers and registers
2424   for(x=0;x<4;x++)
2525   {
26      dmac->timer[x] = timer_alloc(machine, dma_transfer_timer, (void*)device);
26      dmac->timer[x] = timer_alloc(device->machine, dma_transfer_timer, (void*)device);
2727      dmac->reg[x].niv = 0x0f;  // defaults?
2828      dmac->reg[x].eiv = 0x0f;
2929      dmac->clock[x] = dmac->intf->clock[x];
src/mess/mess.mak
r3750r3751
396396   $(MESSOBJ)/cpschngr.a \
397397   $(MESSOBJ)/cybiko.a \
398398   $(MESSOBJ)/dai.a \
399   $(MESSOBJ)/einis.a \
399400   $(MESSOBJ)/epson.a \
400401   $(MESSOBJ)/exeltel.a \
401402   $(MESSOBJ)/exidy.a \
402403   $(MESSOBJ)/fairch.a \
403404   $(MESSOBJ)/galaxy.a \
404405   $(MESSOBJ)/gce.a \
406   $(MESSOBJ)/homelab.a \
407   $(MESSOBJ)/irisha.a \
405408   $(MESSOBJ)/kaypro.a \
406409   $(MESSOBJ)/kim1.a \
410   $(MESSOBJ)/kramermc.a \
407411   $(MESSOBJ)/lynx.a \
408412   $(MESSOBJ)/magnavox.a \
409413   $(MESSOBJ)/mbee.a \
414   $(MESSOBJ)/mikro80.a \
415   $(MESSOBJ)/ondra.a \
416   $(MESSOBJ)/orion.a \
417   $(MESSOBJ)/pel.a \
418   $(MESSOBJ)/pk8020.a \
419   $(MESSOBJ)/pp01.a \
420   $(MESSOBJ)/primo.a \
421   $(MESSOBJ)/radio.a \
422   $(MESSOBJ)/rt1715.a \
423   $(MESSOBJ)/sapi1.a \
424   $(MESSOBJ)/sharp.a \
425   $(MESSOBJ)/special.a \
426   $(MESSOBJ)/ut88.a \
427   $(MESSOBJ)/vector06.a \
410428   $(MESSOBJ)/shared.a \
411429
412430#   $(MESSOBJ)/amstrad.a \
413431#   $(MESSOBJ)/atari.a \
414432#   $(MESSOBJ)/dgn_beta.a \
415#   $(MESSOBJ)/einis.a \
416433#   $(MESSOBJ)/ep128.a \
417434#   $(MESSOBJ)/epoch.a \
418435#   $(MESSOBJ)/glasgow.a \
419436#   $(MESSOBJ)/gmaster.a \
420437#   $(MESSOBJ)/grundy.a \
421#   $(MESSOBJ)/homelab.a \
422438#   $(MESSOBJ)/hp48.a \
423439#   $(MESSOBJ)/intv.a \
424#   $(MESSOBJ)/irisha.a \
425440#   $(MESSOBJ)/jupiter.a \
426#   $(MESSOBJ)/kramermc.a \
427441#   $(MESSOBJ)/luxor.a \
428442#   $(MESSOBJ)/lviv.a \
429443#   $(MESSOBJ)/mc10.a \
430444#   $(MESSOBJ)/memotech.a \
431445#   $(MESSOBJ)/mephisto.a \
432#   $(MESSOBJ)/mikro80.a \
433446#   $(MESSOBJ)/mk1.a \
434447#   $(MESSOBJ)/mk2.a \
435448#   $(MESSOBJ)/motorola.a \
r3750r3751
438451#   $(MESSOBJ)/nec.a \
439452#   $(MESSOBJ)/necpc.a \
440453#   $(MESSOBJ)/nintendo.a \
441#   $(MESSOBJ)/ondra.a \
442#   $(MESSOBJ)/orion.a \
443454#   $(MESSOBJ)/osborne.a \
444455#   $(MESSOBJ)/p2000.a \
445456#   $(MESSOBJ)/pasogo.a \
446457#   $(MESSOBJ)/pc.a \
447458#   $(MESSOBJ)/pcshare.a \
448459#   $(MESSOBJ)/pdp1.a \
449#   $(MESSOBJ)/pel.a \
450#   $(MESSOBJ)/pk8020.a \
451460#   $(MESSOBJ)/pmd85.a \
452#   $(MESSOBJ)/pp01.a \
453#   $(MESSOBJ)/primo.a \
454#   $(MESSOBJ)/radio.a \
455461#   $(MESSOBJ)/rca.a \
456462#   $(MESSOBJ)/rockwell.a \
457#   $(MESSOBJ)/rt1715.a \
458463#   $(MESSOBJ)/samcoupe.a \
459#   $(MESSOBJ)/sapi1.a \
460464#   $(MESSOBJ)/sega.a \
461465#   $(MESSOBJ)/sgi.a \
462#   $(MESSOBJ)/sharp.a \
463466#   $(MESSOBJ)/sinclair.a \
464467#   $(MESSOBJ)/sony.a \
465468#   $(MESSOBJ)/sord.a \
466#   $(MESSOBJ)/special.a \
467469#   $(MESSOBJ)/ssystem3.a \
468470#   $(MESSOBJ)/super80.a \
469471#   $(MESSOBJ)/svi.a \
r3750r3751
480482#   $(MESSOBJ)/trs80.a \
481483#   $(MESSOBJ)/tutor.a \
482484#   $(MESSOBJ)/tx0.a \
483#   $(MESSOBJ)/ut88.a \
484485#   $(MESSOBJ)/vc4000.a \
485486#   $(MESSOBJ)/veb.a \
486#   $(MESSOBJ)/vector06.a \
487487#   $(MESSOBJ)/votrax.a \
488488#   $(MESSOBJ)/vtech.a \
489489
src/mess/formats/mz_cas.c
r3750r3751
66#define VERBOSE 0
77#endif
88
9//#define LOG(N,M,A)   
10//   if(VERBOSE>=N){ if( M )logerror("%11.6f: %-24s",attotime_to_double(timer_get_time(machine)), (const char*)M ); logerror A; }
11
912#define LOG(N,M,A)   \
10   if(VERBOSE>=N){ if( M )logerror("%11.6f: %-24s",attotime_to_double(timer_get_time(machine)), (const char*)M ); logerror A; }
13   if(VERBOSE>=N){ if( M )logerror("%-24s",(const char*)M ); logerror A; }
1114
1215#define LO  -32768
1316#define HI   +32767
src/mess/drivers/x68k.c
r3750r3751
14181418      offset *= 2;
14191419      if(ACCESSING_BITS_0_7)
14201420         offset++;
1421      timer_set(machine, cpu_clocks_to_attotime(space->machine->cpu[0], 4), NULL, 0xbffffc+offset,x68k_fake_bus_error);
1421      timer_set(space->machine, cpu_clocks_to_attotime(space->machine->cpu[0], 4), NULL, 0xbffffc+offset,x68k_fake_bus_error);
14221422   }
14231423   return 0xff;
14241424}
r3750r3751
14351435      offset *= 2;
14361436      if(ACCESSING_BITS_0_7)
14371437         offset++;
1438      timer_set(machine, cpu_clocks_to_attotime(machine->cpu[0], 4), NULL, 0xbffffc+offset,x68k_fake_bus_error);
1438      timer_set(space->machine, cpu_clocks_to_attotime(space->machine->cpu[0], 4), NULL, 0xbffffc+offset,x68k_fake_bus_error);
14391439   }
14401440}
14411441
r3750r3751
14491449      offset *= 2;
14501450      if(ACCESSING_BITS_0_7)
14511451         offset++;
1452      timer_set(machine, cpu_clocks_to_attotime(machine->cpu[0], 16), NULL, 0xeafa00+offset,x68k_fake_bus_error);
1452      timer_set(space->machine, cpu_clocks_to_attotime(space->machine->cpu[0], 16), NULL, 0xeafa00+offset,x68k_fake_bus_error);
14531453//      cpu_set_input_line_and_vector(machine->cpu[0],2,ASSERT_LINE,current_vector[2]);
14541454   }
14551455   return 0xffff;
r3750r3751
14651465      offset *= 2;
14661466      if(ACCESSING_BITS_0_7)
14671467         offset++;
1468      timer_set(machine, cpu_clocks_to_attotime(machine->cpu[0], 16), NULL, 0xeafa00+offset,x68k_fake_bus_error);
1468      timer_set(space->machine, cpu_clocks_to_attotime(space->machine->cpu[0], 16), NULL, 0xeafa00+offset,x68k_fake_bus_error);
14691469//      cpu_set_input_line_and_vector(machine->cpu[0],2,ASSERT_LINE,current_vector[2]);
14701470   }
14711471}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team