Previous 15994 Revisions Next

r2743 Sunday 25th May, 2008 at 11:54:49 UTC by Wilbert Pol
[IBMPCJR] Video status bit 0 should hold the DISPLAY_ENABLE signal instead of the HSYNC signal.
[src/mess/video]pc_t1t.c

src/mess/video/pc_t1t.c
r2742r2743
2525static VIDEO_START( pc_pcjr );
2626static VIDEO_UPDATE( mc6845_t1000 );
2727static MC6845_UPDATE_ROW( t1000_update_row );
28static MC6845_ON_HSYNC_CHANGED( t1000_hsync_changed );
28static MC6845_ON_DE_CHANGED( t1000_de_changed );
2929static MC6845_ON_VSYNC_CHANGED( t1000_vsync_changed );
3030static MC6845_ON_VSYNC_CHANGED( pcjr_vsync_changed );
3131
r2742r2743
3737   NULL,               /* begin_update */
3838   t1000_update_row,      /* update_row */
3939   NULL,               /* end_update */
40   NULL,               /* on_de_chaged */
41   t1000_hsync_changed,   /* on_hsync_changed */
40   t1000_de_changed,      /* on_de_chaged */
41   NULL,               /* on_hsync_changed */
4242   t1000_vsync_changed      /* on_vsync_changed */
4343};
4444
r2742r2743
6565   NULL,               /* begin_update */
6666   t1000_update_row,      /* update_row */
6767   NULL,               /* end_update */
68   NULL,               /* on_de_chaged */
69   t1000_hsync_changed,   /* on_hsync_changed */
68   t1000_de_changed,      /* on_de_chaged */
69   NULL,               /* on_hsync_changed */
7070   pcjr_vsync_changed      /* on_vsync_changed */
7171};
7272
r2742r2743
140140   UINT8   address_data_ff;
141141
142142   mc6845_update_row_func   update_row;
143   UINT8   hsync;
143   UINT8   display_enable;
144144   UINT8   vsync;
145145} pcjr = { 0 };
146146
r2742r2743
533533 *      (MCGA,color ET4000) reserved (0)
534534 *  1   (CGA,color EGA) positive edge from light pen has set trigger
535535 *      (MCGA,color ET4000) reserved (0)
536 *  0   horizontal retrace in progress
536 *  0   display enabled
537537 *      =0  do not use memory
538538 *      =1  memory access without interfering with display
539539 *      (Genoa SuperEGA) horizontal or vertical retrace
540540 */
541541static int pc_t1t_status_r(void)
542542{
543    int data = pcjr.vsync | pcjr.status | pcjr.hsync;
543    int data = pcjr.vsync | pcjr.status | pcjr.display_enable;
544544   /* HACK HACK HACK */
545   data |= ( pcjr.hsync ? 0x10 : 0x00 );
545   data |= ( pcjr.display_enable ? 0x10 : 0x00 );
546546   /* end HACK */
547547    return data;
548548}
r2742r2743
864864}
865865
866866
867static MC6845_ON_HSYNC_CHANGED( t1000_hsync_changed )
867static MC6845_ON_DE_CHANGED( t1000_de_changed )
868868{
869   pcjr.hsync = hsync ? 0 : 1;
869   pcjr.display_enable = display_enabled ? 1 : 0;
870870}
871871
872872
r2742r2743
879879   }
880880}
881881
882
882883static MC6845_ON_VSYNC_CHANGED( pcjr_vsync_changed )
883884{
884885   pcjr.vsync = vsync ? 8 : 0;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team