Previous 15994 Revisions Next

r3765 Monday 8th December, 2008 at 00:28:45 UTC by Nathan Woods
More drivers...
[src/mess]mess.mak messdriv.c
[src/mess/devices]kermit.c xmodem.c
[src/mess/machine]at.c dgn_beta.c hp48.c pc.c
[src/mess/video]dgn_beta.c hp48.c

src/mess/video/dgn_beta.c
r3764r3765
221221{
222222   GCtrl=data;
223223   if (LogRegWrites)
224      debug_console_printf("I28-PB=$%2X, %2X-%s-%s-%s-%s-%s-%s PC=%4X\n",
224      debug_console_printf(Machine, "I28-PB=$%2X, %2X-%s-%s-%s-%s-%s-%s PC=%4X\n",
225225                 data,
226226                 data & GCtrlAddrLines,
227227                 data & GCtrlFS       ? "FS" : "  ",
r3764r3765
261261//      beta_scr_x=0-(((HT-HS)-HW)*8);   // Number of dots after HS to wait before start of next line
262262      beta_scr_x=0-((HT-(HS+HW))*Dots);
263263
264//debug_console_printf("HT=%d, HS=%d, HW=%d, (HS+HW)=%d, HT-(HS+HW)=%d\n",HT,HS,HW,(HS+HW),(HT-(HS+HW)));
265//debug_console_printf("Scanline=%d, row=%d\n",m6845_get_scanline_counter(),m6845_get_row_counter());
264//debug_console_printf(machine, "HT=%d, HS=%d, HW=%d, (HS+HW)=%d, HT-(HS+HW)=%d\n",HT,HS,HW,(HS+HW),(HT-(HS+HW)));
265//debug_console_printf(machine, "Scanline=%d, row=%d\n",m6845_get_scanline_counter(),m6845_get_row_counter());
266266      HSyncMin=beta_scr_x;
267267   }
268268}
r3764r3765
289289      else if (DrawInterlace==INTERLACE_ON)
290290      {
291291         Field=(Field+1) & 0x01;   /* Invert field */
292//         debug_console_printf("Invert field=%d\n",Field);
292//         debug_console_printf(machine, "Invert field=%d\n",Field);
293293      }
294294      VSyncMin=beta_scr_y;
295295   }
r3764r3765
499499   {
500500      PlotY=(y*2);//+Field;
501501      DoubleY=0;
502//      debug_console_printf("Field=%d\n",Field);
502//      debug_console_printf(machine, "Field=%d\n",Field);
503503   }
504504
505505   /* Error check, make sure we're drawing on the actual bitmap ! */
r3764r3765
729729{
730730   LogRegWrites=!LogRegWrites;
731731
732   debug_console_printf("6845 register write info set : %d\n",LogRegWrites);
732   debug_console_printf(machine, "6845 register write info set : %d\n",LogRegWrites);
733733}
734734
735735
r3764r3765
758758   }
759759
760760   if(offset&0x1)
761      debug_console_printf("6845 write Reg %s Addr=%3d Data=%3d ($%2.2X) \n",RegName,VidAddr,data,data);
761      debug_console_printf(Machine, "6845 write Reg %s Addr=%3d Data=%3d ($%2.2X) \n",RegName,VidAddr,data,data);
762762}
763763
764764static void execute_beta_vid_fill(running_machine *machine, int ref, int params, const char *param[])
r3764r3765
793793      *BITMAP_ADDR16(bit, y, BoxMinX) = BoxColour;
794794      *BITMAP_ADDR16(bit, y, BoxMaxX) = BoxColour;
795795   }
796   debug_console_printf("ScreenBox()\n");
796   debug_console_printf(machine, "ScreenBox()\n");
797797}
798798
799799
r3764r3765
804804
805805static void execute_beta_vid_limits(running_machine *machine, int ref, int params, const char *param[])
806806{
807   debug_console_printf("Min X     =$%4X, Max X     =$%4X\n",MinX,MaxX);
808   debug_console_printf("Min Y     =$%4X, Max Y     =$%4X\n",MinY,MaxY);
809   debug_console_printf("MinVidAddr=$%5X, MaxVidAddr=$%5X\n",MinAddr,MaxAddr);
810   debug_console_printf("HsyncMin  =%d, VSyncMin=%d\n",HSyncMin, VSyncMin);
811   debug_console_printf("Interlace =%d\n",DrawInterlace);
812   debug_console_printf("DEPos=%d\n",DEPos);
807   debug_console_printf(machine, "Min X     =$%4X, Max X     =$%4X\n",MinX,MaxX);
808   debug_console_printf(machine, "Min Y     =$%4X, Max Y     =$%4X\n",MinY,MaxY);
809   debug_console_printf(machine, "MinVidAddr=$%5X, MaxVidAddr=$%5X\n",MinAddr,MaxAddr);
810   debug_console_printf(machine, "HsyncMin  =%d, VSyncMin=%d\n",HSyncMin, VSyncMin);
811   debug_console_printf(machine, "Interlace =%d\n",DrawInterlace);
812   debug_console_printf(machine, "DEPos=%d\n",DEPos);
813813   if (IsGfx16)
814      debug_console_printf("Gfx16\n");
814      debug_console_printf(machine, "Gfx16\n");
815815   else if (IsGfx2)
816      debug_console_printf("Gfx2\n");
816      debug_console_printf(machine, "Gfx2\n");
817817   else
818      debug_console_printf("Gfx4/Text\n");
818      debug_console_printf(machine, "Gfx4/Text\n");
819819}
820820
821821static void execute_beta_vid_clkmax(running_machine *machine, int ref, int params, const char *param[])
src/mess/video/hp48.c
r3764r3765
151151
152152   int fg = contrast + 1;
153153
154   LOG(( "%f hp48 video_update called: ", attotime_to_double(timer_get_time(machine)) ));
154   LOG(( "%f hp48 video_update called: ", attotime_to_double(timer_get_time(screen->machine)) ));
155155
156156   if ( !display || refresh )
157157   {
src/mess/messdriv.c
r3764r3765
611611   DRIVER( dragon64 )   /* Dragon 64                              */
612612   DRIVER( d64plus )   /* Dragon 64 + Compusense Plus addon            */
613613   DRIVER( dgnalpha )   /* Dragon Alpha                              */
614//0128u5   DRIVER( dgnbeta )   /* Dragon Beta                              */
614   DRIVER( dgnbeta )   /* Dragon Beta                              */
615615   DRIVER( tanodr64 )   /* Tano Dragon 64 (NTSC)                     */
616616   DRIVER( cp400 )      /* Prologica CP400                           */
617617   DRIVER( mc10 )      /* MC-10                                 */
r3764r3765
849849//0128u5   DRIVER( comquest )   /* Comquest Plus German                        */
850850
851851   /* Hewlett Packard */
852//0128u5   DRIVER( hp48s )      /* HP48 S */
853//0128u5   DRIVER( hp48sx )   /* HP48 SX */
854//0128u5   DRIVER( hp48g )      /* HP48 G */
855//0128u5   DRIVER( hp48gx )   /* HP48 GX */
852   DRIVER( hp48s )      /* HP48 S */
853   DRIVER( hp48sx )   /* HP48 SX */
854   DRIVER( hp48g )      /* HP48 G */
855   DRIVER( hp48gx )   /* HP48 GX */
856856
857857   /* SpectraVideo */
858858//0128u5   DRIVER( svi318 )   /* SVI-318 (PAL)                           */
src/mess/machine/dgn_beta.c
r3764r3765
262262         {
263263            readbank = &mess_ram[MapPage*RamPageSize];
264264            if(LogDatWrites)
265               debug_console_printf("Mapping page %X, pageno=%X, mess_ram[%X]\n",Page,MapPage,(MapPage*RamPageSize));
265               debug_console_printf(machine, "Mapping page %X, pageno=%X, mess_ram[%X]\n",Page,MapPage,(MapPage*RamPageSize));
266266         }
267267         else
268268         {
r3764r3765
305305   int      Idx;
306306
307307   LOG_DEFAULT_TASK(("SetDefaultTask()\n"));
308   if (VERBOSE) debug_console_printf("Set Default task\n");
308   if (VERBOSE) debug_console_printf(machine, "Set Default task\n");
309309
310310   TaskReg=NoPagingTask;
311311
r3764r3765
622622      RowShifter = (RowShifter<<1) | ((d_pia0_pb_last & KOutDat)>>4);
623623      RowShifter &= 0x3FF;
624624      LOG_KEYBOARD(("Rowshifter=$%02X Keyrow=$%02X\n",RowShifter,Keyrow));
625      if (VERBOSE) debug_console_printf("rowshifter clocked, value=%3X, RowNo=%d, Keyrow=%2X\n",RowShifter,RowNo,Keyrow);
625      if (VERBOSE) debug_console_printf(space->machine, "rowshifter clocked, value=%3X, RowNo=%d, Keyrow=%2X\n",RowShifter,RowNo,Keyrow);
626626   }
627627
628628   d_pia0_cb2_last=data;
r3764r3765
12691269{
12701270   LogDatWrites=!LogDatWrites;
12711271
1272   debug_console_printf("DAT register write info set : %d\n",LogDatWrites);
1272   debug_console_printf(machine, "DAT register write info set : %d\n",LogDatWrites);
12731273}
12741274
12751275static void execute_beta_key_dump(running_machine *machine, int ref, int params, const char *param[])
r3764r3765
12781278
12791279   for(Idx=0;Idx<NoKeyrows;Idx++)
12801280   {
1281      debug_console_printf("KeyRow[%d]=%2X\n",Idx,Keyboard[Idx]);
1281      debug_console_printf(machine, "KeyRow[%d]=%2X\n",Idx,Keyboard[Idx]);
12821282   }
12831283}
src/mess/machine/hp48.c
r3764r3765
179179   }
180180
181181   /* schedule end of reception */
182   timer_set( RS232_DELAY, NULL, data, hp48_rs232_byte_recv_cb );
182   timer_set( machine, RS232_DELAY, NULL, data, hp48_rs232_byte_recv_cb );
183183}
184184
185185
r3764r3765
224224   /* schedule transmission */
225225   if ( (xmodem && image_exists( xmodem )) || (kermit && image_exists( kermit )) )
226226   {
227      timer_set( RS232_DELAY, NULL, data, hp48_rs232_byte_sent_cb );
227      timer_set( machine, RS232_DELAY, NULL, data, hp48_rs232_byte_sent_cb );
228228   }
229229#ifdef CHARDEV
230230   else
r3764r3765
420420static WRITE8_HANDLER ( hp48_io_w )
421421{
422422   LOG(( "%05x %f hp48_io_w: off=%02x data=%x\n",
423         cpu_get_previouspc(space->cpu), attotime_to_double(timer_get_time(machine)), offset, data ));
423         cpu_get_previouspc(space->cpu), attotime_to_double(timer_get_time(space->machine)), offset, data ));
424424
425425   switch( offset )
426426   {
r3764r3765
468468      if ( data & 1 )
469469      {
470470         LOG(( "%f hp48_io_w: software interrupt requested\n",
471               attotime_to_double(timer_get_time(machine)) ));
471               attotime_to_double(timer_get_time(space->machine)) ));
472472         cpu_set_input_line( space->machine->cpu[0], SATURN_IRQ_LINE, PULSE_LINE );
473473         data &= ~1;
474474      }
r3764r3765
637637   }
638638
639639   LOG(( "%05x %f hp48_io_r: off=%02x data=%x\n",
640         cpu_get_previouspc(space->cpu), attotime_to_double(timer_get_time(machine)), offset, data ));
640         cpu_get_previouspc(space->cpu), attotime_to_double(timer_get_time(space->machine)), offset, data ));
641641   return data;
642642}
643643
r3764r3765
650650   offset &= 0x7e;
651651   if ( hp48_bank_switch != offset )
652652   {
653      LOG(( "%05x %f hp48_bank_r: off=%03x\n", cpu_get_previouspc(space->cpu), attotime_to_double(timer_get_time(machine)), offset ));
653      LOG(( "%05x %f hp48_bank_r: off=%03x\n", cpu_get_previouspc(space->cpu), attotime_to_double(timer_get_time(space->machine)), offset ));
654654      hp48_bank_switch = offset;
655655      hp48_apply_modules( space->machine, NULL );
656656   }
src/mess/machine/at.c
r3764r3765
729729   };
730730
731731   init_at_common(machine, &at8042);
732   pc_turbo_setup(0, "DSW2", 0x02, 4.77/12, 1);
732   pc_turbo_setup(machine, 0, "DSW2", 0x02, 4.77/12, 1);
733733   pc_vga_init(machine, &vga_interface, NULL);
734734
735735   /* Attach keyboard to the keyboard controller */
r3764r3765
746746      KBDC8042_PS2, at_set_gate_a20, at_keyboard_interrupt, at_get_out2
747747   };
748748   init_at_common(machine, &at8042);
749   pc_turbo_setup(0, "DSW2", 0x02, 4.77/12, 1);
749   pc_turbo_setup(machine, 0, "DSW2", 0x02, 4.77/12, 1);
750750   pc_vga_init(machine, &vga_interface, NULL);
751751
752752   /* Attach keyboard to the keyboard controller */
src/mess/machine/pc.c
r3764r3765
11101110      memory_set_bankptr( machine, 10, mess_ram );
11111111
11121112   /* FDC/HDC hardware */
1113   pc_hdc_setup(set_hdc_int_func);
1113   pc_hdc_setup(machine, set_hdc_int_func);
11141114
11151115   pc_lpt_config(0, lpt_config);
11161116   centronics_config(0, cent_config);
r3764r3765
11481148DRIVER_INIT( bondwell )
11491149{
11501150   mess_init_pc_common(machine, PCCOMMON_KEYBOARD_PC, pc_set_keyb_int, pc_set_irq_line);
1151   pc_turbo_setup(0, "DSW2", 0x02, 4.77/12, 1);
1151   pc_turbo_setup(machine, 0, "DSW2", 0x02, 4.77/12, 1);
11521152}
11531153
11541154DRIVER_INIT( pcmda )
r3764r3765
11861186DRIVER_INIT( t1000hx )
11871187{
11881188   mess_init_pc_common(machine, PCCOMMON_KEYBOARD_PC, pc_set_keyb_int, pc_set_irq_line);
1189   pc_turbo_setup(0, "DSW2", 0x02, 4.77/12, 1);
1189   pc_turbo_setup(machine, 0, "DSW2", 0x02, 4.77/12, 1);
11901190}
11911191
11921192DRIVER_INIT( pc200 )
src/mess/mess.mak
r3764r3765
371371   $(MESSOBJ)/acorn.a \
372372   $(MESSOBJ)/advision.a \
373373   $(MESSOBJ)/amiga.a \
374   $(MESSOBJ)/amstrad.a \
374375   $(MESSOBJ)/apexc.a \
375376   $(MESSOBJ)/apf.a \
376377   $(MESSOBJ)/apple.a \
r3764r3765
397398   $(MESSOBJ)/cpschngr.a \
398399   $(MESSOBJ)/cybiko.a \
399400   $(MESSOBJ)/dai.a \
401   $(MESSOBJ)/dgn_beta.a \
400402   $(MESSOBJ)/einis.a \
401403   $(MESSOBJ)/epson.a \
402404   $(MESSOBJ)/ep128.a \
r3764r3765
409411   $(MESSOBJ)/glasgow.a \
410412   $(MESSOBJ)/gmaster.a \
411413   $(MESSOBJ)/homelab.a \
414   $(MESSOBJ)/hp48.a \
412415   $(MESSOBJ)/intv.a \
413416   $(MESSOBJ)/irisha.a \
414417   $(MESSOBJ)/kaypro.a \
r3764r3765
462465   $(MESSOBJ)/vtech.a \
463466   $(MESSOBJ)/shared.a \
464467
465#   $(MESSOBJ)/amstrad.a \
466#   $(MESSOBJ)/dgn_beta.a \
467468#   $(MESSOBJ)/grundy.a \
468#   $(MESSOBJ)/hp48.a \
469469#   $(MESSOBJ)/jupiter.a \
470470#   $(MESSOBJ)/luxor.a \
471471#   $(MESSOBJ)/memotech.a \
src/mess/devices/xmodem.c
r3764r3765
299299   state->image = NULL;
300300   state->conf = (xmodem_config*) device->static_config;
301301   state->machine = device->machine;
302   state->timer = timer_alloc(machine,  xmodem_nak_cb, state );
302   state->timer = timer_alloc(device->machine,  xmodem_nak_cb, state );
303303   return DEVICE_START_OK;
304304}
305305
src/mess/devices/kermit.c
r3764r3765
634634   state->image = NULL;
635635   state->conf = (kermit_config*) device->static_config;
636636   state->machine = device->machine;
637   state->resend = timer_alloc(machine,  kermit_resend_cb, state );
637   state->resend = timer_alloc(device->machine,  kermit_resend_cb, state );
638638   kermit_reset( state );
639639   return DEVICE_START_OK;
640640}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team