src/mess/video/dgn_beta.c
| r3764 | r3765 | |
| 221 | 221 | { |
| 222 | 222 | GCtrl=data; |
| 223 | 223 | 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", |
| 225 | 225 | data, |
| 226 | 226 | data & GCtrlAddrLines, |
| 227 | 227 | data & GCtrlFS ? "FS" : " ", |
| r3764 | r3765 | |
| 261 | 261 | // beta_scr_x=0-(((HT-HS)-HW)*8); // Number of dots after HS to wait before start of next line |
| 262 | 262 | beta_scr_x=0-((HT-(HS+HW))*Dots); |
| 263 | 263 | |
| 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()); |
| 266 | 266 | HSyncMin=beta_scr_x; |
| 267 | 267 | } |
| 268 | 268 | } |
| r3764 | r3765 | |
| 289 | 289 | else if (DrawInterlace==INTERLACE_ON) |
| 290 | 290 | { |
| 291 | 291 | 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); |
| 293 | 293 | } |
| 294 | 294 | VSyncMin=beta_scr_y; |
| 295 | 295 | } |
| r3764 | r3765 | |
| 499 | 499 | { |
| 500 | 500 | PlotY=(y*2);//+Field; |
| 501 | 501 | DoubleY=0; |
| 502 | | // debug_console_printf("Field=%d\n",Field); |
| 502 | // debug_console_printf(machine, "Field=%d\n",Field); |
| 503 | 503 | } |
| 504 | 504 | |
| 505 | 505 | /* Error check, make sure we're drawing on the actual bitmap ! */ |
| r3764 | r3765 | |
| 729 | 729 | { |
| 730 | 730 | LogRegWrites=!LogRegWrites; |
| 731 | 731 | |
| 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); |
| 733 | 733 | } |
| 734 | 734 | |
| 735 | 735 | |
| r3764 | r3765 | |
| 758 | 758 | } |
| 759 | 759 | |
| 760 | 760 | 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); |
| 762 | 762 | } |
| 763 | 763 | |
| 764 | 764 | static void execute_beta_vid_fill(running_machine *machine, int ref, int params, const char *param[]) |
| r3764 | r3765 | |
| 793 | 793 | *BITMAP_ADDR16(bit, y, BoxMinX) = BoxColour; |
| 794 | 794 | *BITMAP_ADDR16(bit, y, BoxMaxX) = BoxColour; |
| 795 | 795 | } |
| 796 | | debug_console_printf("ScreenBox()\n"); |
| 796 | debug_console_printf(machine, "ScreenBox()\n"); |
| 797 | 797 | } |
| 798 | 798 | |
| 799 | 799 | |
| r3764 | r3765 | |
| 804 | 804 | |
| 805 | 805 | static void execute_beta_vid_limits(running_machine *machine, int ref, int params, const char *param[]) |
| 806 | 806 | { |
| 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); |
| 813 | 813 | if (IsGfx16) |
| 814 | | debug_console_printf("Gfx16\n"); |
| 814 | debug_console_printf(machine, "Gfx16\n"); |
| 815 | 815 | else if (IsGfx2) |
| 816 | | debug_console_printf("Gfx2\n"); |
| 816 | debug_console_printf(machine, "Gfx2\n"); |
| 817 | 817 | else |
| 818 | | debug_console_printf("Gfx4/Text\n"); |
| 818 | debug_console_printf(machine, "Gfx4/Text\n"); |
| 819 | 819 | } |
| 820 | 820 | |
| 821 | 821 | static void execute_beta_vid_clkmax(running_machine *machine, int ref, int params, const char *param[]) |
src/mess/machine/dgn_beta.c
| r3764 | r3765 | |
| 262 | 262 | { |
| 263 | 263 | readbank = &mess_ram[MapPage*RamPageSize]; |
| 264 | 264 | 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)); |
| 266 | 266 | } |
| 267 | 267 | else |
| 268 | 268 | { |
| r3764 | r3765 | |
| 305 | 305 | int Idx; |
| 306 | 306 | |
| 307 | 307 | 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"); |
| 309 | 309 | |
| 310 | 310 | TaskReg=NoPagingTask; |
| 311 | 311 | |
| r3764 | r3765 | |
| 622 | 622 | RowShifter = (RowShifter<<1) | ((d_pia0_pb_last & KOutDat)>>4); |
| 623 | 623 | RowShifter &= 0x3FF; |
| 624 | 624 | 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); |
| 626 | 626 | } |
| 627 | 627 | |
| 628 | 628 | d_pia0_cb2_last=data; |
| r3764 | r3765 | |
| 1269 | 1269 | { |
| 1270 | 1270 | LogDatWrites=!LogDatWrites; |
| 1271 | 1271 | |
| 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); |
| 1273 | 1273 | } |
| 1274 | 1274 | |
| 1275 | 1275 | static void execute_beta_key_dump(running_machine *machine, int ref, int params, const char *param[]) |
| r3764 | r3765 | |
| 1278 | 1278 | |
| 1279 | 1279 | for(Idx=0;Idx<NoKeyrows;Idx++) |
| 1280 | 1280 | { |
| 1281 | | debug_console_printf("KeyRow[%d]=%2X\n",Idx,Keyboard[Idx]); |
| 1281 | debug_console_printf(machine, "KeyRow[%d]=%2X\n",Idx,Keyboard[Idx]); |
| 1282 | 1282 | } |
| 1283 | 1283 | } |
src/mess/machine/hp48.c
| r3764 | r3765 | |
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | /* 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 ); |
| 183 | 183 | } |
| 184 | 184 | |
| 185 | 185 | |
| r3764 | r3765 | |
| 224 | 224 | /* schedule transmission */ |
| 225 | 225 | if ( (xmodem && image_exists( xmodem )) || (kermit && image_exists( kermit )) ) |
| 226 | 226 | { |
| 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 ); |
| 228 | 228 | } |
| 229 | 229 | #ifdef CHARDEV |
| 230 | 230 | else |
| r3764 | r3765 | |
| 420 | 420 | static WRITE8_HANDLER ( hp48_io_w ) |
| 421 | 421 | { |
| 422 | 422 | 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 )); |
| 424 | 424 | |
| 425 | 425 | switch( offset ) |
| 426 | 426 | { |
| r3764 | r3765 | |
| 468 | 468 | if ( data & 1 ) |
| 469 | 469 | { |
| 470 | 470 | 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)) )); |
| 472 | 472 | cpu_set_input_line( space->machine->cpu[0], SATURN_IRQ_LINE, PULSE_LINE ); |
| 473 | 473 | data &= ~1; |
| 474 | 474 | } |
| r3764 | r3765 | |
| 637 | 637 | } |
| 638 | 638 | |
| 639 | 639 | 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 )); |
| 641 | 641 | return data; |
| 642 | 642 | } |
| 643 | 643 | |
| r3764 | r3765 | |
| 650 | 650 | offset &= 0x7e; |
| 651 | 651 | if ( hp48_bank_switch != offset ) |
| 652 | 652 | { |
| 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 )); |
| 654 | 654 | hp48_bank_switch = offset; |
| 655 | 655 | hp48_apply_modules( space->machine, NULL ); |
| 656 | 656 | } |
src/mess/machine/at.c
| r3764 | r3765 | |
| 729 | 729 | }; |
| 730 | 730 | |
| 731 | 731 | 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); |
| 733 | 733 | pc_vga_init(machine, &vga_interface, NULL); |
| 734 | 734 | |
| 735 | 735 | /* Attach keyboard to the keyboard controller */ |
| r3764 | r3765 | |
| 746 | 746 | KBDC8042_PS2, at_set_gate_a20, at_keyboard_interrupt, at_get_out2 |
| 747 | 747 | }; |
| 748 | 748 | 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); |
| 750 | 750 | pc_vga_init(machine, &vga_interface, NULL); |
| 751 | 751 | |
| 752 | 752 | /* Attach keyboard to the keyboard controller */ |
src/mess/machine/pc.c
| r3764 | r3765 | |
| 1110 | 1110 | memory_set_bankptr( machine, 10, mess_ram ); |
| 1111 | 1111 | |
| 1112 | 1112 | /* FDC/HDC hardware */ |
| 1113 | | pc_hdc_setup(set_hdc_int_func); |
| 1113 | pc_hdc_setup(machine, set_hdc_int_func); |
| 1114 | 1114 | |
| 1115 | 1115 | pc_lpt_config(0, lpt_config); |
| 1116 | 1116 | centronics_config(0, cent_config); |
| r3764 | r3765 | |
| 1148 | 1148 | DRIVER_INIT( bondwell ) |
| 1149 | 1149 | { |
| 1150 | 1150 | 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); |
| 1152 | 1152 | } |
| 1153 | 1153 | |
| 1154 | 1154 | DRIVER_INIT( pcmda ) |
| r3764 | r3765 | |
| 1186 | 1186 | DRIVER_INIT( t1000hx ) |
| 1187 | 1187 | { |
| 1188 | 1188 | 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); |
| 1190 | 1190 | } |
| 1191 | 1191 | |
| 1192 | 1192 | DRIVER_INIT( pc200 ) |