ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/Frodo4/Src/VIC_SC.cpp
(Generate patch)

Comparing Frodo4/Src/VIC_SC.cpp (file contents):
Revision 1.4 by cebix, 2004-01-12T15:13:20Z vs.
Revision 1.6 by cebix, 2010-04-21T19:53:28Z

# Line 1 | Line 1
1   /*
2   *  VIC_SC.cpp - 6569R5 emulation (cycle based)
3   *
4 < *  Frodo (C) 1994-1997,2002-2004 Christian Bauer
4 > *  Frodo Copyright (C) Christian Bauer
5   *
6   *  This program is free software; you can redistribute it and/or modify
7   *  it under the terms of the GNU General Public License as published by
# Line 286 | Line 286 | MOS6569::MOS6569(C64 *c64, C64Display *d
286          display_state = false;
287          border_on = ud_border_on = vblanking = false;
288          lp_triggered = draw_this_line = false;
289 +        is_bad_line = false;
290  
291 <        spr_dma_on = spr_disp_on = 0;
291 >    spr_exp_y = spr_dma_on = spr_disp_on = 0;
292          for (i=0; i<8; i++) {
293                  mc[i] = 63;
294 +                mc_base[i] = 0;
295                  spr_ptr[i] = 0;
296          }
297  
# Line 1514 | Line 1516 | bool MOS6569::EmulateCycle(void)
1516                  // Fetch sprite pointer 3, increment raster counter, trigger raster IRQ,
1517                  // test for Bad Line, reset BA if sprites 3 and 4 off, read data of sprite 3
1518                  case 1:
1519 <                        if (raster_y == TOTAL_RASTERS-1)
1519 >                        if (raster_y == TOTAL_RASTERS-1) {
1520  
1521                                  // Trigger VBlank in cycle 2
1522                                  vblanking = true;
1523  
1524 <                        else {
1524 >                        } else {
1525  
1526                                  // Increment raster counter
1527                                  raster_y++;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines