Previous 15994 Revisions Next

r9021 Thursday 2nd September, 2010 at 21:38:35 UTC by Barry Rodewald
[CPCPLUS] Fixed programmable raster interrupt.
[src/mess/machine]amstrad.c

src/mess/machine/amstrad.c
r9020r9021
126126   UINT8   addr_6845;         /* We need these to store a shadow copy of R1 of the mc6845 */
127127   UINT8   horiz_disp;
128128   UINT8   hscroll;
129   UINT8   de_start;          /* flag to check if DE is been enabled this frame yet */
129130
130131   /* DMA */
131132   UINT8   dma_status;
r9020r9021
990991         }
991992         // CPC+/GX4000 DMA channels
992993         amstrad_plus_handle_dma(device->machine);  // a DMA command is handled at the leading edge of HSYNC (every 64us)
994         if(asic.de_start != 0)
995            asic.vpos++;
993996      }
994997   }
995998   gate_array.hsync = state ? 1 : 0;
r9020r9021
10071010
10081011      /* Start of new frame */
10091012      gate_array.y = -1;
1010      asic.vpos = 0;
1013      asic.vpos = 1;
1014      asic.de_start = 0;
10111015   }
10121016
10131017   gate_array.vsync = state ? 1 : 0;
r9020r9021
10251029
10261030      /* Start of new frame */
10271031      gate_array.y = -1;
1028      asic.vpos = 0;
1032      asic.vpos = 1;
1033      asic.de_start = 0;
10291034   }
10301035
10311036   gate_array.vsync = state ? 1 : 0;
r9020r9021
10441049      gate_array.ma = mc6845_get_ma( mc6845 );
10451050      gate_array.ra = mc6845_get_ra( mc6845 );
10461051      amstrad_gate_array_get_video_data( device->machine );
1052      asic.de_start = 1;
10471053   }
10481054
1049   if ( gate_array.de && ! state )
1050   {
1051      asic.vpos++;
1052   }
1053
10541055   gate_array.de = state ? 1 : 0;
10551056}
10561057
r9020r9021
10671068      gate_array.ma = mc6845_get_ma( mc6845 );
10681069      gate_array.ra = mc6845_get_ra( mc6845 );
10691070      asic.h_start = gate_array.line_ticks;
1071      asic.de_start = 1;
10701072
1071      if ( asic.vpos == 0 )
1073      if ( asic.vpos == 1 )
10721074      {
10731075         asic.split_ma_base = 0x0000;
10741076         asic.split_ma_started = 0x0000;
r9020r9021
10901092   {
10911093      asic.h_end = gate_array.line_ticks;
10921094      amstrad_plus_update_video_sprites( device->machine );
1093      asic.vpos++;
10941095   }
10951096
10961097   gate_array.de = state ? 1 : 0;

Previous 15994 Revisions Next


© 1998-2018 The MESS Team