Previous 15994 Revisions Next

r7448 Tuesday 23rd February, 2010 at 12:37:12 UTC by Curt Coder
[TANDY2K] Added video logic.
[src/mess/drivers]tandy2k.c
[src/mess/includes]tandy2k.h
[src/mess/video]crt9007.c crt9007.h

src/mess/video/crt9007.c
r7447r7448
7373}
7474 
7575/*-------------------------------------------------
76    crt9007_update - update screen
77-------------------------------------------------*/
78 
79void crt9007_update(running_device *device, bitmap_t *bitmap, const rectangle *cliprect)
80{
81}
82 
83/*-------------------------------------------------
7684    DEVICE_START( crt9007 )
7785-------------------------------------------------*/
7886 
src/mess/video/crt9007.h
r7447r7448
7474READ8_DEVICE_HANDLER( crt9007_r );
7575WRITE8_DEVICE_HANDLER( crt9007_w );
7676 
77/* screen update */
78void crt9007_update(running_device *device, bitmap_t *bitmap, const rectangle *cliprect);
79 
7780#endif
src/mess/includes/tandy2k.h
r7447r7448
3131   /* PPI state */
3232   int pb_sel;
3333
34   /* video state */
35   UINT8 *hires_ram;
36   UINT16 palette[16];
37
3438   /* sound state */
3539   int outspkr;
3640   int spkrdata;
r7447r7448
4145   running_device *fdc;
4246   running_device *pic0;
4347   running_device *pic1;
48   running_device *crt;
4449   running_device *centronics;
4550   running_device *speaker;
4651};
src/mess/drivers/tandy2k.c
r7447r7448
417417 
418418static VIDEO_START( tandy2k )
419419{
420   tandy2k_state *state = (tandy2k_state *)machine->driver_data;
421 
422   /* find devices */
423   state->crt = devtag_get_device(machine, CRT9007_TAG);
420424}
421425 
422426static VIDEO_UPDATE( tandy2k )
423427{
424    return 0;
428   tandy2k_state *state = (tandy2k_state *)screen->machine->driver_data;
429 
430   crt9007_update(state->crt, bitmap, cliprect);
431 
432   return 0;
425433}
426434 
435static WRITE_LINE_DEVICE_HANDLER( vidint11_w )
436{
437   tandy2k_state *driver_state = (tandy2k_state *)device->machine->driver_data;
438   
439   pic8259_set_irq_line(driver_state->pic1, 1, state);
440}
441 
427442static CRT9007_INTERFACE( crt9007_intf )
428443{
444   DEVCB_LINE(vidint11_w),
429445   DEVCB_NULL,
430446   DEVCB_NULL,
431   DEVCB_NULL
447   DEVCB_MEMORY_HANDLER(I80186_TAG, PROGRAM, memory_read_byte_16le)
432448};
433449 
434450/* Intel 8251A Interface */
r7447r7448
774790   MDRV_CPU_MODIFY(I80186_TAG)
775791    MDRV_CPU_IO_MAP(tandy2k_hd_io)
776792 
777   /* Tandom TM502 hard disk */
793   /* Tandon TM502 hard disk */
778794   //MDRV_WD1010_ADD(WD1010_TAG, wd1010_intf)
779795MACHINE_DRIVER_END
780796 

Previous 15994 Revisions Next


© 1998-2018 The MESS Team