Previous 15994 Revisions Next

r2818 Thursday 5th June, 2008 at 16:24:54 UTC by Firewave
more Machine -> machine and deprecat.h cleanups
[src/mess/drivers]atarist.c pasogo.c studio2.c ti990_10.c ti990_4.c
[src/mess/includes]pc8801.h thomson.h
[src/mess/machine]aim65.c apple2gs.c apple3.c c16.c concept.c lisa.c microtan.c msx.c pc8801.c pet.c svi318.c sym1.c thomson.c vc20.c vectrex.c
[src/mess/video]733_asr.c 733_asr.h 911_vdt.c 911_vdt.h mbee.c pc8801.c pc_cga.c thomson.c vic6567.c

src/mess/includes/thomson.h
r2817r2818
243243/************************* lightpen ********************************/
244244
245245/* specific TO7 / T9000 lightpen code (no video gate-array) */
246extern unsigned to7_lightpen_gpl ( int decx, int decy );
246extern unsigned to7_lightpen_gpl ( running_machine *machine, int decx, int decy );
247247
248248/* video position corresponding to lightpen (with some offset) */
249extern struct thom_vsignal thom_get_lightpen_vsignal ( int xdec, int ydec,
249extern struct thom_vsignal thom_get_lightpen_vsignal ( running_machine *machine, int xdec, int ydec,
250250                         int xdec2 );
251251
252252/* specify a lightpencall-back function, called nb times per frame */
src/mess/includes/pc8801.h
r2817r2818
3333extern MACHINE_RESET( pc88srl );
3434extern MACHINE_RESET( pc88srh );
3535
36void pc8801_update_bank(void);
36void pc8801_update_bank(running_machine *machine);
3737extern unsigned char *pc8801_mainRAM;
3838extern int pc88sr_is_highspeed;
3939READ8_HANDLER(pc8801fd_nec765_tc);
r2817r2818
5050/*----------- defined in video/pc8801.c -----------*/
5151
5252void pc8801_video_init (running_machine *machine, int hireso);
53int is_pc8801_vram_select(void);
53int is_pc8801_vram_select(running_machine *machine);
5454WRITE8_HANDLER(pc8801_vramsel);
5555 READ8_HANDLER(pc8801_vramtest);
5656extern unsigned char *pc88sr_textRAM;
src/mess/video/911_vdt.c
r2817r2818
1111
1212
1313#include "driver.h"
14#include "deprecat.h"
1514#include "911_vdt.h"
1615#include "911_chr.h"
1716#include "911_key.h"
r2817r2818
551550   keyboard handler: should be called regularly by machine code, for instance
552551   every Video Blank Interrupt.
553552*/
554void vdt911_keyboard(int unit)
553void vdt911_keyboard(running_machine *machine, int unit)
555554{
556555   typedef enum
557556   {
r2817r2818
579578   for (i=0; i<6; i++)
580579   {
581580      sprintf(port, "KEY%d", i);
582      key_buf[i] = input_port_read(Machine, port);
581      key_buf[i] = input_port_read(machine, port);
583582   }
584583
585584   /* parse modifier keys */
src/mess/video/911_vdt.h
r2817r2818
5858
5959void vdt911_refresh(running_machine *machine, bitmap_t *bitmap, int unit, int x, int y);
6060
61void vdt911_keyboard(int unit);
61void vdt911_keyboard(running_machine *machine, int unit);
6262
6363#define VDT911_KEY_PORTS                                                      \
6464   PORT_START_TAG("KEY0")   /* keys 1-16 */                                                   \
src/mess/video/mbee.c
r2817r2818
77****************************************************************************/
88
99#include "driver.h"
10#include "deprecat.h"
1110#include "includes/mbee.h"
1211
1312
r2817r2818
9897      colorram[offset] = data;
9998}
10099
101static int keyboard_matrix_r(int offs)
100static int keyboard_matrix_r(running_machine *machine, int offs)
102101{
103102   char portname[6];
104103   int port = (offs >> 7) & 7;
105104   int bit = (offs >> 4) & 7;
106   int extra = input_port_read(Machine, "EXTRA");
105   int extra = input_port_read(machine, "EXTRA");
107106   int data = 0;
108107   sprintf(portname, "LINE%d", port);
109   data = (input_port_read(Machine, portname) >> bit) & 1;
108   data = (input_port_read(machine, portname) >> bit) & 1;
110109
111110   if( extra & 0x01 )   /* extra: cursor up */
112111   {
r2817r2818
167166      memory_set_bank( 2, 1);
168167}
169168
170static void m6545_update_strobe(int param)
169static void m6545_update_strobe(running_machine *machine, int param)
171170{
172171   int data;
173   data = keyboard_matrix_r(param);
172   data = keyboard_matrix_r(machine, param);
174173   crt.update_strobe = 1;
175174//   if( data )
176175//      logerror("6545 update_strobe_cb $%04X = $%02X\n", param, data);
r2817r2818
261260      /* shared memory latch */
262261      addr = (crt.transp_hi << 8) | crt.transp_lo;
263262//      logerror("6545 transp_latch $%04X\n", addr);
264      m6545_update_strobe(addr);
263      m6545_update_strobe(machine, addr);
265264      break;
266265   default:
267266      logerror("6545 read unmapped port $%X\n", crt.idx);
r2817r2818
383382      /* shared memory latch */
384383      addr = (crt.transp_hi << 8) | crt.transp_lo;
385384//      logerror("6545 transp_latch $%04X\n", addr);
386      m6545_update_strobe(addr);
385      m6545_update_strobe(machine, addr);
387386      break;
388387   default:
389388      logerror("6545 write unmapped port $%X <- $%02X\n", crt.idx, data);
r2817r2818
465464   UINT16 cursor = (crt.cursor_address_hi<<8) | crt.cursor_address_lo;         // get cursor position
466465   UINT16 screen_home = (crt.screen_address_hi<<8) | crt.screen_address_lo;      // screen home offset (usually zero)
467466
468   for( i = 0; i < 0x380; i += 0x10 ) keyboard_matrix_r(i);
467   for( i = 0; i < 0x380; i += 0x10 ) keyboard_matrix_r(screen->machine, i);
469468
470469   framecnt++;
471470
r2817r2818
507506   UINT16 screen_home = (crt.screen_address_hi<<8) | crt.screen_address_lo;      // screen home offset (usually zero)
508507   UINT16 colourm = (mbee_pcg_color_latch & 0x0e) << 7;
509508
510   for( i = 0; i < 0x380; i += 0x10 ) keyboard_matrix_r(i);
509   for( i = 0; i < 0x380; i += 0x10 ) keyboard_matrix_r(screen->machine, i);
511510
512511   framecnt++;
513512
src/mess/video/thomson.c
r2817r2818
88
99#include <math.h>
1010#include "driver.h"
11#include "deprecat.h"
1211#include "includes/thomson.h"
1312#include "cpu/m6809/m6809.h"
1413#include "machine/6821pia.h"
r2817r2818
138137
139138
140139
141static void thom_get_lightpen_pos( int*x, int* y )
140static void thom_get_lightpen_pos( running_machine *machine, int*x, int* y )
142141{
143   *x = input_port_read(Machine, "lightpen_x");
144   *y = input_port_read(Machine, "lightpen_y");
142   *x = input_port_read(machine, "lightpen_x");
143   *y = input_port_read(machine, "lightpen_y");
145144
146145   if ( *x < 0 )
147146      *x = 0;
r2817r2818
158157
159158
160159
161struct thom_vsignal thom_get_lightpen_vsignal ( int xdec, int ydec, int xdec2 )
160struct thom_vsignal thom_get_lightpen_vsignal ( running_machine *machine, int xdec, int ydec, int xdec2 )
162161{
163162   struct thom_vsignal v;
164163   int x, y;
165164   int gpl;
166165
167   thom_get_lightpen_pos( &x, &y );
166   thom_get_lightpen_pos( machine, &x, &y );
168167   x += xdec - thom_bwidth;
169168   y += ydec - thom_bheight;
170169
r2817r2818
10381037   int fnew, fold = FLOP_STATE;
10391038   int i;
10401039   UINT16 b = 0;
1041   struct thom_vsignal l = thom_get_lightpen_vsignal( 0, -1, 0 );
1040   struct thom_vsignal l = thom_get_lightpen_vsignal( machine, 0, -1, 0 );
10421041
10431042   LOG (( "%f thom: video eof called\n", attotime_to_double(timer_get_time()) ));
10441043
r2817r2818
12161215/* bits 0-13 : latched gpl of lightpen position */
12171216/* bit    14:  latched INIT */
12181217/* bit    15:  latched INIL */
1219unsigned to7_lightpen_gpl ( int decx, int decy )
1218unsigned to7_lightpen_gpl ( running_machine *machine, int decx, int decy )
12201219{
12211220   int x,y;
1222   thom_get_lightpen_pos( &x, &y );
1221   thom_get_lightpen_pos( machine, &x, &y );
12231222   x -= thom_bwidth;
12241223   y -= thom_bheight;
12251224   if ( x < 0 || y < 0 || x >= 320 || y >= 200 )
src/mess/video/pc8801.c
r2817r2818
88   but the pen colours may be wrong. This needs to be tested. */
99
1010#include "driver.h"
11#include "deprecat.h"
1211#include "machine/8255ppi.h"
1312#include "includes/pc8801.h"
1413
r2817r2818
238237
239238#undef XXX
240239
241int is_pc8801_vram_select(void)
240int is_pc8801_vram_select(running_machine *machine)
242241{
243242   read8_machine_func rh5 = NULL, rh6 = NULL;
244243   write8_machine_func wh5 = NULL, wh6 = NULL;
r2817r2818
299298  }
300299
301300
302   if (rh5) memory_install_read8_handler(Machine, 0,  ADDRESS_SPACE_PROGRAM, 0xc000, 0xefff, 0, 0, rh5);
303   if (wh5) memory_install_write8_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, 0xc000, 0xefff, 0, 0, wh5);
304   if (rh6) memory_install_read8_handler(Machine, 0,  ADDRESS_SPACE_PROGRAM, 0xf000, 0xffff, 0, 0, rh6);
305   if (wh6) memory_install_write8_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, 0xf000, 0xffff, 0, 0, wh6);
301   if (rh5) memory_install_read8_handler(machine, 0,  ADDRESS_SPACE_PROGRAM, 0xc000, 0xefff, 0, 0, rh5);
302   if (wh5) memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xc000, 0xefff, 0, 0, wh5);
303   if (rh6) memory_install_read8_handler(machine, 0,  ADDRESS_SPACE_PROGRAM, 0xf000, 0xffff, 0, 0, rh6);
304   if (wh6) memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xf000, 0xffff, 0, 0, wh6);
306305}
307306
308307WRITE8_HANDLER(pc88sr_disp_32)
309308{
310309  analog_palette=((data & 0x20) != 0x00);
311310  ALUON=((data & 0x40) != 0x00);
312  pc8801_update_bank();
311  pc8801_update_bank(machine);
313312}
314313
315314WRITE8_HANDLER(pc88sr_ALU)
r2817r2818
322321    ALU2=data;
323322    break;
324323  }
325  pc8801_update_bank();
324  pc8801_update_bank(machine);
326325}
327326
328327WRITE8_HANDLER(pc8801_vramsel)
r2817r2818
332331  } else {
333332    selected_vram=offset+1;
334333  }
335  pc8801_update_bank();
334  pc8801_update_bank(machine);
336335}
337336
338337 READ8_HANDLER(pc8801_vramtest)
src/mess/video/pc_cga.c
r2817r2818
7676***************************************************************************/
7777
7878#include "driver.h"
79#include "deprecat.h"
79//#include "deprecat.h"
8080#include "video/pc_cga.h"
8181#include "video/mc6845.h"
8282#include "video/pc_video.h"
src/mess/video/vic6567.c
r2817r2818
5858#include <assert.h>
5959
6060#include "driver.h"
61#include "deprecat.h"
6261#include "vic6567.h"
6362#include "vic4567.h"
6463#include "utils.h"
src/mess/video/733_asr.c
r2817r2818
2121*/
2222
2323#include "driver.h"
24#include "deprecat.h"
2524#include "733_asr.h"
2625
2726#define MAX_ASR 1
r2817r2818
606605   keyboard handler: should be called regularly by machine code, for instance
607606   every Video Blank Interrupt.
608607*/
609void asr733_keyboard(int unit)
608void asr733_keyboard(running_machine *machine, int unit)
610609{
611610   typedef enum
612611   {
r2817r2818
633632   for (i=0; i<4; i++)
634633   {
635634      sprintf(port, "KEY%d", i);
636      key_buf[i] = input_port_read(Machine, port);
635      key_buf[i] = input_port_read(machine, port);
637636   }
638637
639638   /* process key modifiers */
src/mess/video/733_asr.h
r2817r2818
2929
3030void asr733_refresh(running_machine *machine, bitmap_t *bitmap, int unit, int x, int y);
3131
32void asr733_keyboard(int unit);
32void asr733_keyboard(running_machine *machine, int unit);
3333
3434#define ASR733_KEY_PORTS                                                      \
3535   PORT_START_TAG("KEY0")   /* keys 1-16 */                                                   \
src/mess/machine/apple3.c
r2817r2818
1414***************************************************************************/
1515
1616#include "driver.h"
17#include "deprecat.h"
1817#include "includes/apple3.h"
1918#include "includes/apple2.h"
2019#include "cpu/m6502/m6502.h"
src/mess/machine/aim65.c
r2817r2818
66
77
88#include "driver.h"
9#include "deprecat.h"
109#include "includes/aim65.h"
1110
1211/* Peripheral chips */
src/mess/machine/thomson.c
r2817r2818
466466   if ( to7_lightpen )
467467   {
468468      /* lightpen hi */
469      return to7_lightpen_gpl( TO7_LIGHTPEN_DECAL, to7_lightpen_step ) >> 8;
469      return to7_lightpen_gpl( machine, TO7_LIGHTPEN_DECAL, to7_lightpen_step ) >> 8;
470470   }
471471   else
472472   {
r2817r2818
493493static READ8_HANDLER ( to7_sys_portb_in )
494494{
495495   /* lightpen low */
496   return to7_lightpen_gpl( TO7_LIGHTPEN_DECAL, to7_lightpen_step ) & 0xff;
496   return to7_lightpen_gpl( machine, TO7_LIGHTPEN_DECAL, to7_lightpen_step ) & 0xff;
497497}
498498
499499
src/mess/machine/pet.c
r2817r2818
55***************************************************************************/
66
77#include "driver.h"
8#include "deprecat.h"
98#include "cpu/m6502/m6502.h"
109#include "cpu/m6809/m6809.h"
1110
src/mess/machine/c16.c
r2817r2818
99***************************************************************************/
1010
1111#include "driver.h"
12#include "deprecat.h"
1312#include "image.h"
1413#include "cpu/m6502/m6502.h"
1514#include "sound/sid6581.h"
src/mess/machine/microtan.c
r2817r2818
1414
1515/* Core includes */
1616#include "driver.h"
17#include "deprecat.h"
1817#include "includes/microtan.h"
1918
2019/* Components */
src/mess/machine/svi318.c
r2817r2818
99*/
1010
1111#include "driver.h"
12#include "deprecat.h"
1312#include "video/mc6845.h"
1413#include "includes/svi318.h"
1514#include "cpu/z80/z80.h"
src/mess/machine/apple2gs.c
r2817r2818
106106
107107#include <assert.h>
108108#include "driver.h"
109#include "deprecat.h"
110109
111110#include "includes/apple2gs.h"
112111#include "includes/apple2.h"
src/mess/machine/concept.c
r2817r2818
55*/
66
77#include "driver.h"
8#include "deprecat.h"
98#include "includes/concept.h"
109#include "machine/6522via.h"
1110#include "machine/mm58274c.h"   /* mm58274 seems to be compatible with mm58174 */
src/mess/machine/msx.c
r2817r2818
1212 */
1313
1414#include "driver.h"
15#include "deprecat.h"
1615#include "machine/8255ppi.h"
1716#include "includes/msx_slot.h"
1817#include "includes/msx.h"
src/mess/machine/vectrex.c
r2817r2818
11#include "driver.h"
2#include "deprecat.h"
32#include "video/vector.h"
43#include "machine/6522via.h"
54#include "cpu/m6809/m6809.h"
src/mess/machine/lisa.c
r2817r2818
3737*/
3838
3939#include "driver.h"
40#include "deprecat.h"
4140#include "includes/lisa.h"
4241#include "machine/6522via.h"
4342#include "machine/applefdc.h"
src/mess/machine/sym1.c
r2817r2818
88
99
1010#include "driver.h"
11#include "deprecat.h"
1211#include "includes/sym1.h"
1312
1413/* M6502 CPU */
src/mess/machine/pc8801.c
r2817r2818
3737static UINT8 extmem_ctrl[2];
3838
3939static int use_5FD;
40static void pc8801_init_5fd(void);
40static void pc8801_init_5fd(running_machine *machine);
4141
4242static void pc88sr_init_fmsound(void);
4343static int enable_FM_IRQ;
r2817r2818
376376#undef SET_RET
377377}
378378
379void pc8801_update_bank(void)
379void pc8801_update_bank(running_machine *machine)
380380{
381381   char *ext_r,*ext_w;
382382
r2817r2818
395395      if(ext_w==NULL)
396396      {
397397         /* read only mode */
398         memory_install_write8_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, 0x0000, 0x5fff, 0, 0, SMH_NOP);
399         memory_install_write8_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, 0x6000, 0x7fff, 0, 0, SMH_NOP);
398         memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x0000, 0x5fff, 0, 0, SMH_NOP);
399         memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x6000, 0x7fff, 0, 0, SMH_NOP);
400400      }
401401      else
402402      {
403403         /* r/w mode */
404         memory_install_write8_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, 0x0000, 0x5fff, 0, 0, SMH_BANK1);
405         memory_install_write8_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, 0x6000, 0x7fff, 0, 0, SMH_BANK2);
404         memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x0000, 0x5fff, 0, 0, SMH_BANK1);
405         memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x6000, 0x7fff, 0, 0, SMH_BANK2);
406406         if(ext_w!=ext_r) logerror("differnt between read and write bank of extension memory.\n");
407407      }
408408   }
r2817r2818
412412      if(RAMmode)
413413      {
414414         /* RAM */
415         memory_install_write8_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, 0x0000, 0x5fff, 0, 0, SMH_BANK1);
416         memory_install_write8_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, 0x6000, 0x7fff, 0, 0, SMH_BANK2);
415         memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x0000, 0x5fff, 0, 0, SMH_BANK1);
416         memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x6000, 0x7fff, 0, 0, SMH_BANK2);
417417         memory_set_bankptr(1, pc8801_mainRAM + 0x0000);
418418         memory_set_bankptr(2, pc8801_mainRAM + 0x6000);
419419      }
r2817r2818
421421      {
422422         /* ROM */
423423         /* write through to main RAM */
424         memory_install_write8_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, 0x0000, 0x5fff, 0, 0, pc8801_writemem1);
425         memory_install_write8_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, 0x6000, 0x7fff, 0, 0, pc8801_writemem2);
424         memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x0000, 0x5fff, 0, 0, pc8801_writemem1);
425         memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x6000, 0x7fff, 0, 0, pc8801_writemem2);
426426         if(ROMmode)
427427         {
428428            /* N-BASIC */
r2817r2818
444444   }
445445
446446   /* 0x8000 to 0xffff */
447   memory_install_read8_handler(Machine, 0,  ADDRESS_SPACE_PROGRAM, 0x8000, 0x83ff, 0, 0, (RAMmode || ROMmode) ? SMH_BANK3 : pc8801_read_textwindow);
448   memory_install_write8_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, 0x8000, 0x83ff, 0, 0, (RAMmode || ROMmode) ? SMH_BANK3 : pc8801_write_textwindow);
447   memory_install_read8_handler(machine, 0,  ADDRESS_SPACE_PROGRAM, 0x8000, 0x83ff, 0, 0, (RAMmode || ROMmode) ? SMH_BANK3 : pc8801_read_textwindow);
448   memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0x8000, 0x83ff, 0, 0, (RAMmode || ROMmode) ? SMH_BANK3 : pc8801_write_textwindow);
449449
450450   memory_set_bankptr(4, pc8801_mainRAM + 0x8400);
451451
452   if(is_pc8801_vram_select())
452   if(is_pc8801_vram_select(machine))
453453   {
454454      /* VRAM */
455455      /* already maped */
456456   }
457457   else
458458   {
459      memory_install_read8_handler(Machine, 0,  ADDRESS_SPACE_PROGRAM, 0xc000, 0xefff, 0, 0, SMH_BANK5);
460      memory_install_write8_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, 0xc000, 0xefff, 0, 0, SMH_BANK5);
461      memory_install_read8_handler(Machine, 0,  ADDRESS_SPACE_PROGRAM, 0xf000, 0xffff, 0, 0, SMH_BANK6);
462      memory_install_write8_handler(Machine, 0, ADDRESS_SPACE_PROGRAM, 0xf000, 0xffff, 0, 0, SMH_BANK6);
459      memory_install_read8_handler(machine, 0,  ADDRESS_SPACE_PROGRAM, 0xc000, 0xefff, 0, 0, SMH_BANK5);
460      memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xc000, 0xefff, 0, 0, SMH_BANK5);
461      memory_install_read8_handler(machine, 0,  ADDRESS_SPACE_PROGRAM, 0xf000, 0xffff, 0, 0, SMH_BANK6);
462      memory_install_write8_handler(machine, 0, ADDRESS_SPACE_PROGRAM, 0xf000, 0xffff, 0, 0, SMH_BANK6);
463463
464464      memory_set_bankptr(5, pc8801_mainRAM + 0xc000);
465465      if(maptvram)
r2817r2818
479479WRITE8_HANDLER(pc8801_write_extmem)
480480{
481481  extmem_ctrl[offset]=data;
482  pc8801_update_bank();
482  pc8801_update_bank(machine);
483483}
484484
485485WRITE8_HANDLER(pc88sr_outport_31)
r2817r2818
487487  /* bit 5 not implemented */
488488  RAMmode=((data&0x02)!=0);
489489  ROMmode=((data&0x04)!=0);
490  pc8801_update_bank();
490  pc8801_update_bank(machine);
491491  pc88sr_disp_31(machine, offset,data);
492492}
493493
r2817r2818
505505  enable_FM_IRQ=((data & 0x80) == 0x00);
506506  if(FM_IRQ_save && enable_FM_IRQ) pc8801_raise_interrupt(machine, FM_IRQ_LEVEL);
507507  pc88sr_disp_32(machine, offset,data);
508  pc8801_update_bank();
508  pc8801_update_bank(machine);
509509}
510510
511511 READ8_HANDLER(pc8801_inport_70)
r2817r2818
516516WRITE8_HANDLER(pc8801_outport_70)
517517{
518518  text_window=data;
519  pc8801_update_bank();
519  pc8801_update_bank(machine);
520520}
521521
522522WRITE8_HANDLER(pc8801_outport_78)
523523{
524524  text_window=((text_window+1)&0xff);
525  pc8801_update_bank();
525  pc8801_update_bank(machine);
526526}
527527
528528 READ8_HANDLER(pc88sr_inport_71)
r2817r2818
549549    no4throm=0;
550550    break;
551551  }
552  pc8801_update_bank();
552  pc8801_update_bank(machine);
553553}
554554
555555static void pc8801_init_bank(running_machine *machine, int hireso)
r2817r2818
570570   memset(pc8801_mainRAM, 0, 0x10000);
571571
572572   extmem_ctrl[0]=extmem_ctrl[1]=0;
573   pc8801_update_bank();
573   pc8801_update_bank(machine);
574574   pc8801_video_init(machine, hireso);
575575
576576  if(extmem_mode!=input_port_read(machine, "MEM")) {
r2817r2818
703703  is_8MHz = ((a&0x08)!=0x00);
704704  fix_V1V2();
705705  pc8801_init_bank(machine, hireso);
706  pc8801_init_5fd();
706  pc8801_init_5fd(machine);
707707  pc8801_init_interrupt();
708708  beep_set_state(0, 0);
709709  beep_set_frequency(0, 2400);
r2817r2818
818818   pc8801_fdc_dma_drq
819819};
820820
821static void pc8801_init_5fd(void)
821static void pc8801_init_5fd(running_machine *machine)
822822{
823   use_5FD = (input_port_read(Machine, "DSW2") & 0x80) != 0x00;
823   use_5FD = (input_port_read(machine, "DSW2") & 0x80) != 0x00;
824824   if (!use_5FD)
825825      cpunum_suspend(1, SUSPEND_REASON_DISABLE, 1);
826826   else
src/mess/machine/vc20.c
r2817r2818
1414#include <stdio.h>
1515
1616#include "driver.h"
17#include "deprecat.h"
1817#include "image.h"
1918#include "cpu/m6502/m6502.h"
2019
src/mess/drivers/ti990_4.c
r2817r2818
6363static INTERRUPT_GEN( ti990_4_line_interrupt )
6464{
6565#if VIDEO_911
66   vdt911_keyboard(0);
66   vdt911_keyboard(machine, 0);
6767#else
68   asr733_keyboard(0);
68   asr733_keyboard(machine, 0);
6969#endif
7070
7171   ti990_line_interrupt();
src/mess/drivers/pasogo.c
r2817r2818
1010******************************************************************************/
1111
1212#include "driver.h"
13#include "deprecat.h"
1413//#include "vidhrdw/generic.h"
1514#include "devices/cartslot.h"
1615#include "machine/pic8259.h"
src/mess/drivers/atarist.c
r2817r2818
11#include "driver.h"
2#include "deprecat.h"
32#include "video/atarist.h"
43#include "cpu/m68000/m68k.h"
54#include "cpu/m68000/m68000.h"
src/mess/drivers/studio2.c
r2817r2818
100100*/
101101
102102#include "driver.h"
103#include "deprecat.h"
104103#include "cpu/cdp1802/cdp1802.h"
105104#include "video/cdp1861.h"
106105#include "video/cdp1864.h"
src/mess/drivers/ti990_10.c
r2817r2818
8787
8888static INTERRUPT_GEN( ti990_10_line_interrupt )
8989{
90   vdt911_keyboard(0);
90   vdt911_keyboard(machine, 0);
9191
9292   ti990_line_interrupt();
9393}

Previous 15994 Revisions Next


© 1998-2018 The MESS Team