Previous 15994 Revisions Next

r7533 Sunday 7th March, 2010 at 21:51:04 UTC by Curt Coder
[XEROX820] Removed trampoline.
[src/mess/drivers]xerox820.c
[src/mess/includes]xerox820.h

src/mess/includes/xerox820.h
r7532r7533
2323   xerox820_state(running_machine &machine) { }
2424
2525   /* keyboard state */
26   int pbrdy;                     /* key pressed */
2726   int keydata;                  /* keyboard data */
2827
2928   /* video state */
src/mess/drivers/xerox820.c
r7532r7533
387387
388388/* Z80 PIO */
389389
390static WRITE_LINE_DEVICE_HANDLER( kbpio_pbrdy_w )
391{
392   xerox820_state *driver_state = (xerox820_state *)device->machine->driver_data;
393
394   driver_state->pbrdy = state;
395}
396
397390static READ8_DEVICE_HANDLER( kbpio_pa_r )
398391{
399392   /*
r7532r7533
413406
414407   xerox820_state *state = (xerox820_state *)device->machine->driver_data;
415408
416   return (state->dsdd << 5) | (state->_8n5 << 4) | (state->pbrdy << 3);
409   return (state->dsdd << 5) | (state->_8n5 << 4) | (z80pio_brdy_r(state->kbpio) << 3);
417410};
418411
419412static WRITE8_DEVICE_HANDLER( kbpio_pa_w )
r7532r7533
501494   DEVCB_NULL,                     /* portA ready active callback */
502495   DEVCB_HANDLER(kbpio_pb_r),         /* port B read callback */
503496   DEVCB_NULL,                     /* port B write callback */
504   DEVCB_LINE(kbpio_pbrdy_w)         /* portB ready active callback */
497   DEVCB_NULL                     /* portB ready active callback */
505498};
506499
507500static Z80PIO_INTERFACE( xerox820ii_kbpio_intf )
r7532r7533
512505   DEVCB_NULL,                     /* portA ready active callback */
513506   DEVCB_HANDLER(kbpio_pb_r),         /* port B read callback */
514507   DEVCB_NULL,                     /* port B write callback */
515   DEVCB_LINE(kbpio_pbrdy_w)         /* portB ready active callback */
508   DEVCB_NULL                     /* portB ready active callback */
516509};
517510
518511static Z80PIO_INTERFACE( gppio_intf )
r7532r7533
735728
736729   /* register for state saving */
737730   state_save_register_global_pointer(machine, state->video_ram, XEROX820_VIDEORAM_SIZE);
738   state_save_register_global(machine, state->pbrdy);
739731   state_save_register_global(machine, state->keydata);
740732   state_save_register_global(machine, state->scroll);
741733   state_save_register_global(machine, state->ncset2);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team