Browse Source

minors modifications on cycle count, re-add correct svn:keywords and update correct source file headers

godzil 16 years ago
parent
commit
79ac4c42f1
58 changed files with 756 additions and 645 deletions
  1. 1 1
      doc/Changements.txt
  2. 1 1
      doc/Changes.txt
  3. 1 1
      doc/LisezMoi.txt
  4. 4 4
      src/NESCarts.c
  5. 5 5
      src/apu/SndAlleg.c
  6. 7 0
      src/apu/Sound.c
  7. 6 6
      src/corecpu/Codes.h
  8. 4 4
      src/corecpu/Debug.c
  9. 19 18
      src/corecpu/M6502.c
  10. 4 4
      src/corecpu/M6502.h
  11. 4 4
      src/corecpu/Tables.h
  12. 6 0
      src/include/MIDIFreq.h
  13. 4 4
      src/include/NESCarts.h
  14. 6 0
      src/include/Sound.h
  15. 5 5
      src/include/memory/manager.h
  16. 4 4
      src/include/paddle.h
  17. 6 1
      src/include/palette.h
  18. 5 5
      src/include/ppu/ppu.debug.h
  19. 4 4
      src/include/ppu/ppu.h
  20. 5 5
      src/include/ppu/ppu.memory.h
  21. 5 5
      src/include/types.h
  22. 443 437
      src/main.c
  23. 8 3
      src/mappersmanager/manager.c
  24. 4 4
      src/mappersmanager/mappers/aorom.c
  25. 4 4
      src/mappersmanager/mappers/aorom.h
  26. 4 4
      src/mappersmanager/mappers/cnrom.c
  27. 4 4
      src/mappersmanager/mappers/cnrom.h
  28. 4 4
      src/mappersmanager/mappers/genericmapper.c
  29. 4 4
      src/mappersmanager/mappers/iremh3001.c
  30. 4 4
      src/mappersmanager/mappers/iremh3001.h
  31. 4 4
      src/mappersmanager/mappers/mmc1.c
  32. 4 4
      src/mappersmanager/mappers/mmc1.h
  33. 4 4
      src/mappersmanager/mappers/mmc3.c
  34. 4 4
      src/mappersmanager/mappers/mmc3.h
  35. 4 4
      src/mappersmanager/mappers/mmc4.c
  36. 4 4
      src/mappersmanager/mappers/mmc4.h
  37. 4 4
      src/mappersmanager/mappers/norom.c
  38. 4 4
      src/mappersmanager/mappers/norom.h
  39. 4 4
      src/mappersmanager/mappers/unrom.c
  40. 4 4
      src/mappersmanager/mappers/unrom.h
  41. 8 3
      src/mappersmanager/mappers_list.h
  42. 4 4
      src/mappersmanager/unused/genericmapper.h
  43. 4 4
      src/mappersmanager/unused/mmc1.h
  44. 4 4
      src/mappersmanager/utils.c
  45. 5 5
      src/memorymanager/memory.c
  46. 4 4
      src/paddle.c
  47. 14 0
      src/pluginsmanager/plugins/gamegenie.c
  48. 14 0
      src/pluginsmanager/plugins/gamegenie.h
  49. 14 0
      src/pluginsmanager/plugins_list.h
  50. 14 0
      src/ppu/debug/ppu.debug.c
  51. 4 4
      src/ppu/oldppu.c
  52. 4 4
      src/ppu/ppu.24.c
  53. 8 8
      src/ppu/ppu.c
  54. 4 4
      src/ppu/ppu.memory.c
  55. 4 4
      src/ppu/ppu.new.c
  56. 4 4
      src/ppu/ppu.new2.c
  57. 4 4
      src/ppu/ppu.old.c
  58. 14 0
      src/utils/bin2h/bin2h.c

+ 1 - 1
doc/Changements.txt

@@ -101,5 +101,5 @@
 	  - Premiere version public, ne sert que de démonstration.
 	  
 --------------------------------------------------------------------------------
-$Id: Changements.txt 29 2007-04-03 14:34:02Z mtrapier $
+$Id$
 --------------------------------------------------------------------------------

+ 1 - 1
doc/Changes.txt

@@ -123,5 +123,5 @@
       - Premiere version public, ne sert que de dŽmonstration.
 	
 --------------------------------------------------------------------------------
-$Id: Changes.txt 51 2007-05-22 16:33:04Z mtrapier $
+$Id$
 --------------------------------------------------------------------------------

+ 1 - 1
doc/LisezMoi.txt

@@ -229,5 +229,5 @@ Vous pouvez aussi essayer de visiter un de mes sites :
 http://www.godzil.net
 
 --------------------------------------------------------------------------------
-$Id: LisezMoi.txt 17 2007-03-27 09:25:23Z mtrapier $
+$Id$
 --------------------------------------------------------------------------------

+ 4 - 4
src/NESCarts.c

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-05-02 18:37:41 +0200 (mer, 02 mai 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/NESCarts.c $
- *  $Revision: 50 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
  

+ 5 - 5
src/apu/SndAlleg.c

@@ -2,13 +2,13 @@
  *  Allegro Sound Driver for EMULib Sound system - The TI-NESulator Project
  *  SndAlleg.C
  *
- *  Created by Manoël Trapier
+ *  Created by Manoel Trapier
  *  Copyright 2003-2008 986 Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-03-28 15:50:50 +0200 (mer, 28 mar 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/types.h $
- *  $Revision: 25 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 #include <Sound.h>

+ 7 - 0
src/apu/Sound.c

@@ -11,6 +11,13 @@
 /**     commercially. Please, notify me, if you make any    **/
 /**     changes to this file.                               **/
 /*************************************************************/
+/*
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
+ */
+
 #include "Sound.h"
 
 #include <stdio.h>

+ 6 - 6
src/corecpu/Codes.h

@@ -12,10 +12,10 @@
  /**     changes to this file.                               **/ 
  /*************************************************************/ 
 /*
- *  $LastChangedDate: 2007-05-31 18:01:41 +0200 (jeu, 31 mai 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/Codes.h $
- *  $Revision: 57 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  */
  
 case 0x10:
@@ -91,7 +91,7 @@ break;            /* BVS * REL */
 case 0x40:
 
 M_POP(R->P);
-R->P |= R_FLAG;
+//R->P |= R_FLAG;
 M_POP(R->PC.B.l);
 M_POP(R->PC.B.h);
 
@@ -197,7 +197,7 @@ if ((R->IRequest != INT_NONE) && ((I ^ R->P) & ~I & I_FLAG))
        R->ICount = 1;
     
 } 
-R->P = I | R_FLAG | B_FLAG;
+R->P = I /*| R_FLAG*/ | B_FLAG;
 
 break;
 

+ 4 - 4
src/corecpu/Debug.c

@@ -13,10 +13,10 @@
 /**     changes to this file.                               **/ 
 /*************************************************************/ 
 /*
- *  $LastChangedDate: 2007-04-19 18:18:57 +0200 (jeu, 19 avr 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/Debug.c $
- *  $Revision: 43 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  */
 
 #include "M6502.h"

+ 19 - 18
src/corecpu/M6502.c

@@ -14,10 +14,10 @@
 /**     changes to this file.                               **/
 /*************************************************************/
 /*
- *  $LastChangedDate: 2007-04-16 01:55:35 +0200 (lun, 16 avr 2007) $
- *  $Author: godzil $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/M6502.c $
- *  $Revision: 39 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  */
  
 #include "M6502.h"
@@ -201,7 +201,7 @@ INLINE byte Op6502(register word A) { return(Page[A>>13][A&0x1FFF]); }
 void Reset6502(M6502 *R)
 {
   R->A=R->X=R->Y=0x00;
-  R->P=Z_FLAG|R_FLAG;
+  R->P=Z_FLAG;
   R->S=0xFF;
   R->PC.B.l=Rd6502(0xFFFC);
   R->PC.B.h=Rd6502(0xFFFD);   
@@ -245,7 +245,7 @@ void Int6502(M6502 *R,byte Type)
     R->ICount-=7;
     M_PUSH(R->PC.B.h);
     M_PUSH(R->PC.B.l);
-    M_PUSH(R->P&~B_FLAG);
+    M_PUSH(R->P & ~(B_FLAG|R_FLAG));
     R->P&=~D_FLAG;
     if(R->IAutoReset&&(Type==R->IRequest)) R->IRequest=INT_NONE;
     if(Type==INT_NMI) J.W=0xFFFA; else { R->P|=I_FLAG;J.W=0xFFFE; }
@@ -402,6 +402,9 @@ int DAsmCAP(char *S, word A)
    return (B - A);
    
 } 
+
+extern unsigned short ScanLine;
+
 #endif
 
 /** Run6502() ************************************************/
@@ -413,7 +416,7 @@ word Run6502(M6502 *R)
 {
   register pair J,K;
   register byte I;
-
+   byte nb_of_cycle;
   for(;;)
   {
 #ifdef DEBUG
@@ -444,21 +447,16 @@ word Run6502(M6502 *R)
      }
      
 #endif
-     
      I=Op6502(R->PC.W++);
-    R->ICount-=Cycles[I];
-    
+     nb_of_cycle = Cycles[I];
 //#ifdef DEBUG
 //    pushop(I);
 //#endif
-
     icount++;
-
     switch(I)
     {
 #include "Codes.h"
     }
-
 #ifdef TRACE_EXECUTION
      while(1)
      {
@@ -478,15 +476,18 @@ word Run6502(M6502 *R)
         
         printf("%c", F & 0x80 ? FA[J] : '.');
      
-        printf("], Stack[%02x, %02x, %02x]\n", 
-             Rd6502(0x0100 + (byte) (R->S + 1)), 
-             Rd6502(0x0100 + (byte) (R->S + 2)), 
-             Rd6502(0x0100 + (byte) (R->S + 3)));
+        printf("], Stack[%02x, %02x, %02x], %03d, %03d\n",
+               Rd6502(0x0100 + (byte) (R->S + 1)),
+               Rd6502(0x0100 + (byte) (R->S + 2)),
+               Rd6502(0x0100 + (byte) (R->S + 3)),
+		     R->ICount,
+			ScanLine
+	        );
    
         break;
      }
 #endif
-
+     R->ICount-= nb_of_cycle;
     /* If cycle counter expired... */
     if(R->ICount<=0)
     {

+ 4 - 4
src/corecpu/M6502.h

@@ -12,10 +12,10 @@
 /**     changes to this file.                               **/
 /*************************************************************/
 /*
- *  $LastChangedDate: 2007-04-23 18:55:35 +0200 (lun, 23 avr 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/M6502.h $
- *  $Revision: 45 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  */
 
 #ifndef M6502_H

+ 4 - 4
src/corecpu/Tables.h

@@ -13,10 +13,10 @@
  /**     changes to this file.                               **/ 
  /*************************************************************/ 
 /*
- *  $LastChangedDate: 2007-05-24 15:07:13 +0200 (jeu, 24 mai 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/Tables.h $
- *  $Revision: 52 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  */
 
 static byte Cycles[256] =  

+ 6 - 0
src/include/MIDIFreq.h

@@ -11,6 +11,12 @@
 /**     commercially. Please, notify me, if you make any    **/
 /**     changes to this file.                               **/
 /*************************************************************/
+/*
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
+ */
 
 { -36, 8063 },{ -12, 8063 },{  -3, 8298 },{   3, 8358 },
 {   8, 8201 },{  12, 8063 },{  15, 8054 },{  17, 8238 },

+ 4 - 4
src/include/NESCarts.h

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-16 01:55:35 +0200 (lun, 16 avr 2007) $
- *  $Author: godzil $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/NESCarts.h $
- *  $Revision: 39 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  */
 
 #ifndef NESCARTS_H

+ 6 - 0
src/include/Sound.h

@@ -11,6 +11,12 @@
 /**     commercially. Please, notify me, if you make any    **/
 /**     changes to this file.                               **/
 /*************************************************************/
+/*
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
+ */
 
 #ifndef SOUND_H
 #define SOUND_H

+ 5 - 5
src/include/memory/manager.h

@@ -2,13 +2,13 @@
  *  6502 Memory manager - The TI-NESulator Project
  *  memory.h - Taken from the Quick6502 project
  *
- *  Created by Manoël Trapier on 18/09/06.
+ *  Created by Manoel Trapier on 18/09/06.
  *  Copyright 2003-2008 986 Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-05 16:30:20 +0200 (jeu, 05 avr 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/memory.h $
- *  $Revision: 31 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 #ifndef MEMORY_H

+ 4 - 4
src/include/paddle.h

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-16 01:55:35 +0200 (lun, 16 avr 2007) $
- *  $Author: godzil $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/paddle.h $
- *  $Revision: 39 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 6 - 1
src/include/palette.h

@@ -1,5 +1,10 @@
 /* Generated data file from file 'stdin' */
-
+/*
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
+ */
 
 PALETTE basicPalette = {
        { 0x1E, 0x1E, 0x1E, 0x07 },

+ 5 - 5
src/include/ppu/ppu.debug.h

@@ -2,13 +2,13 @@
  *  PPU debug utilities - The TI-NESulator Project
  *  ppu.debug.h
  *
- *  Created by Manoël Trapier on 12/04/07.
+ *  Created by Manoel Trapier on 12/04/07.
  *  Copyright 2003-2008 986 Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-05-24 15:11:55 +0200 (jeu, 24 mai 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/ppu/ppu.debug.h $
- *  $Revision: 53 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/include/ppu/ppu.h

@@ -7,10 +7,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-26 18:47:34 +0200 (jeu, 26 avr 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/ppu.h $
- *  $Revision: 46 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 5 - 5
src/include/ppu/ppu.memory.h

@@ -2,13 +2,13 @@
  *  PPU Memory manager - The TI-NESulator Project
  *  ppu.memory.h - Inspired from the memory manager of the Quick6502 Project.
  *
- *  Created by Manoël Trapier on 12/04/07.
+ *  Created by Manoel Trapier on 12/04/07.
  *  Copyright 2003-2008 986 Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-05-24 15:11:55 +0200 (jeu, 24 mai 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/ppu/ppu.memory.h $
- *  $Revision: 53 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 5 - 5
src/include/types.h

@@ -2,13 +2,13 @@
  *  Base type definitions - The TI-NESulator Project
  *  types.h - Taken from the Quick6502 project
  *
- *  Created by Manoël Trapier on 18/09/06.
+ *  Created by Manoel Trapier on 18/09/06.
  *  Copyright 2003-2008 986 Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-03-28 15:50:50 +0200 (mer, 28 mar 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/types.h $
- *  $Revision: 25 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

File diff suppressed because it is too large
+ 443 - 437
src/main.c


+ 8 - 3
src/mappersmanager/manager.c

@@ -1,9 +1,14 @@
 /*
+ *  Mapper manager - The TI-NESulator Project
  *  manager.c
- *  TI-NESulator.X
  *
- *  Created by Manoël Trapier on 07/10/07.
- *  Copyright 2007-2008 986 Corp. All rights reserved.
+ *  Created by Manoel TRAPIER.
+ *  Copyright (c) 2003-2008 986Corp. All rights reserved.
+ *
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/mappersmanager/mappers/aorom.c

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-26 18:47:34 +0200 (jeu, 26 avr 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/aorom.h $
- *  $Revision: 46 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/mappersmanager/mappers/aorom.h

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-26 18:47:34 +0200 (jeu, 26 avr 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/aorom.h $
- *  $Revision: 46 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/mappersmanager/mappers/cnrom.c

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-16 01:55:35 +0200 (lun, 16 avr 2007) $
- *  $Author: godzil $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/cnrom.h $
- *  $Revision: 39 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/mappersmanager/mappers/cnrom.h

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-16 01:55:35 +0200 (lun, 16 avr 2007) $
- *  $Author: godzil $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/cnrom.h $
- *  $Revision: 39 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/mappersmanager/mappers/genericmapper.c

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-16 01:55:35 +0200 (lun, 16 avr 2007) $
- *  $Author: godzil $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/genericmapper.h $
- *  $Revision: 39 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
  

+ 4 - 4
src/mappersmanager/mappers/iremh3001.c

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-16 01:55:35 +0200 (lun, 16 avr 2007) $
- *  $Author: godzil $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/iremh3001.h $
- *  $Revision: 39 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/mappersmanager/mappers/iremh3001.h

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-16 01:55:35 +0200 (lun, 16 avr 2007) $
- *  $Author: godzil $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/iremh3001.h $
- *  $Revision: 39 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/mappersmanager/mappers/mmc1.c

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-05-02 18:37:41 +0200 (mer, 02 mai 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/mmc1.h $
- *  $Revision: 50 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/mappersmanager/mappers/mmc1.h

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-05-02 18:37:41 +0200 (mer, 02 mai 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/mmc1.h $
- *  $Revision: 50 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/mappersmanager/mappers/mmc3.c

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-05-02 18:37:41 +0200 (mer, 02 mai 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/mmc3.h $
- *  $Revision: 50 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/mappersmanager/mappers/mmc3.h

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-05-02 18:37:41 +0200 (mer, 02 mai 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/mmc3.h $
- *  $Revision: 50 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/mappersmanager/mappers/mmc4.c

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2007-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-05-31 18:00:41 +0200 (jeu, 31 mai 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/mmc4.h $
- *  $Revision: 56 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/mappersmanager/mappers/mmc4.h

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2007-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-05-31 18:00:41 +0200 (jeu, 31 mai 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/mmc4.h $
- *  $Revision: 56 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/mappersmanager/mappers/norom.c

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-16 01:55:35 +0200 (lun, 16 avr 2007) $
- *  $Author: godzil $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/unrom.h $
- *  $Revision: 39 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/mappersmanager/mappers/norom.h

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-16 01:55:35 +0200 (lun, 16 avr 2007) $
- *  $Author: godzil $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/unrom.h $
- *  $Revision: 39 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/mappersmanager/mappers/unrom.c

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-16 01:55:35 +0200 (lun, 16 avr 2007) $
- *  $Author: godzil $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/unrom.h $
- *  $Revision: 39 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/mappersmanager/mappers/unrom.h

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-16 01:55:35 +0200 (lun, 16 avr 2007) $
- *  $Author: godzil $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/unrom.h $
- *  $Revision: 39 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 8 - 3
src/mappersmanager/mappers_list.h

@@ -1,9 +1,14 @@
 /*
+ *  Mapper list - The TI-NESulator Project
  *  mappers_list.h
- *  TI-NESulator.X
  *
- *  Created by Manoël Trapier on 25/10/07.
- *  Copyright 2007-2008 986 Corp. All rights reserved.
+ *  Created by Manoel TRAPIER on 25/10/07.
+ *  Copyright (c) 2003-2008 986Corp. All rights reserved.
+ *
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/mappersmanager/unused/genericmapper.h

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-16 01:55:35 +0200 (lun, 16 avr 2007) $
- *  $Author: godzil $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/genericmapper.h $
- *  $Revision: 39 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
  

+ 4 - 4
src/mappersmanager/unused/mmc1.h

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-05-02 18:37:41 +0200 (mer, 02 mai 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/mmc1.h $
- *  $Revision: 50 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 unsigned char MMC1_reg0;

+ 4 - 4
src/mappersmanager/utils.c

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-05-31 18:00:41 +0200 (jeu, 31 mai 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/mappers.c $
- *  $Revision: 56 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */ 
 

+ 5 - 5
src/memorymanager/memory.c

@@ -2,13 +2,13 @@
  *  6502 Memory manager - The TI-NESulator Project
  *  memory.c - Taken from the Quick6502 project
  *
- *  Created by Manoël Trapier on 18/09/06.
+ *  Created by Manoel Trapier on 18/09/06.
  *  Copyright 2003-2008 986 Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-05-02 18:37:41 +0200 (mer, 02 mai 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/memory.c $
- *  $Revision: 50 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/paddle.c

@@ -5,10 +5,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-05-02 18:37:41 +0200 (mer, 02 mai 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/paddle.c $
- *  $Revision: 50 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 14 - 0
src/pluginsmanager/plugins/gamegenie.c

@@ -1,3 +1,17 @@
+/*
+ *  Code Breaker plugin - The TI-NESulator Project
+ *  gamegenie.c: Hack your games with unlimited lives of add new powers!
+ *
+ *  Created by Manoel Trapier.
+ *  Copyright 2003-2008 986 Corp. All rights reserved.
+ *
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
+ *
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <allegro.h>

+ 14 - 0
src/pluginsmanager/plugins/gamegenie.h

@@ -1,2 +1,16 @@
+/*
+ *  Code Breaker plugin - The TI-NESulator Project
+ *  gamegenie.h
+ *
+ *  Created by Manoel Trapier.
+ *  Copyright 2003-2008 986 Corp. All rights reserved.
+ *
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
+ *
+ */
+
 int gg_Init();
 int gg_Deinit();

+ 14 - 0
src/pluginsmanager/plugins_list.h

@@ -1,3 +1,17 @@
+/*
+ *  Plugin Manager plugint list - The TI-NESulator Project
+ *  plugins_list.h
+ *
+ *  Created by Manoel Trapier.
+ *  Copyright 2003-2008 986 Corp. All rights reserved.
+ *
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
+ *
+ */
+
 /* This file could be generated from the plugins directory... */
 
 #include "plugins/gamegenie.h"

+ 14 - 0
src/ppu/debug/ppu.debug.c

@@ -1,3 +1,17 @@
+/*
+ *  PPU Debug utilities - The TI-NESulator Project
+ *  ppu.debug.c
+ *
+ *  Created by Manoel Trapier.
+ *  Copyright 2003-2008 986 Corp. All rights reserved.
+ *
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
+ *
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 

+ 4 - 4
src/ppu/oldppu.c

@@ -9,10 +9,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-03-29 12:05:12 +0200 (jeu, 29 mar 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/oldppu.c $
- *  $Revision: 28 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 #include <allegro.h>

+ 4 - 4
src/ppu/ppu.24.c

@@ -7,10 +7,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-06 17:17:01 +0200 (ven, 06 avr 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/ppu.c $
- *  $Revision: 32 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 8 - 8
src/ppu/ppu.c

@@ -7,10 +7,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-05-31 18:02:16 +0200 (jeu, 31 mai 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/ppu.c $
- *  $Revision: 58 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 
@@ -757,7 +757,7 @@ E = HT
     }
 
 
-    if (scanline >= (240 + VBLANK_TIME))
+    if (scanline >= (240 + VBLANK_TIME - 1))
     {
         /*for ( i = 0; i < 256; i++)
         for ( j = 0; j < 256; j++)
@@ -773,9 +773,9 @@ E = HT
         textprintf(Buffer, font, 260, 3, 4, "FPS : %d (CPU@~%2.2fMhz : %d%%)", FPS, (float) (((float) IPS) / 1000000.0), (int) ((((float) IPS) / 1770000.0) * 100.0));  
         //printf("(SL:%d) FPS : %d   IPS : %d\n", scanline, FPS, IPS);
 
-        ppu_dumpPalette(0, 241);
-        ppu_dumpPattern(280, 150);
-        ppu_dumpNameTable(256,0);
+        //ppu_dumpPalette(0, 241);
+        //ppu_dumpPattern(280, 150);
+        //ppu_dumpNameTable(256,0);
         //ppu_dumpAttributeTable(257, 0);
 
         blit(VideoBuffer, Buffer, 0, 0, 0, 0, 256, 240);

+ 4 - 4
src/ppu/ppu.memory.c

@@ -5,10 +5,10 @@
  *  Created by Manoël Trapier on 12/04/07.
  *  Copyright 2003-2008 986 Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-05-24 15:11:55 +0200 (jeu, 24 mai 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/ppu/ppu.memory.c $
- *  $Revision: 53 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/ppu/ppu.new.c

@@ -7,10 +7,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-04 18:46:30 +0200 (mer, 04 avr 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/ppu.c $
- *  $Revision: 30 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/ppu/ppu.new2.c

@@ -7,10 +7,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-06 17:17:01 +0200 (ven, 06 avr 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/ppu.c $
- *  $Revision: 32 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 4 - 4
src/ppu/ppu.old.c

@@ -7,10 +7,10 @@
  *  Created by Manoel TRAPIER.
  *  Copyright (c) 2003-2008 986Corp. All rights reserved.
  *
- *  $LastChangedDate: 2007-04-06 17:17:01 +0200 (ven, 06 avr 2007) $
- *  $Author: mtrapier $
- *  $HeadURL: file:///media/HD6G/SVNROOT/trunk/TI-NESulator/src/ppu.c $
- *  $Revision: 32 $
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
  *
  */
 

+ 14 - 0
src/utils/bin2h/bin2h.c

@@ -1,3 +1,17 @@
+/*
+ *  bin to header - Part of The TI-NESulator Project
+ *  bin2h.c: Convert a binary file to a table of byte in a C header file.
+ *
+ *  Created by Manoel Trapier.
+ *  Copyright 2003-2008 986 Corp. All rights reserved.
+ *
+ *  $LastChangedDate$
+ *  $Author$
+ *  $HeadURL$
+ *  $Revision$
+ *
+ */
+
 #include <stdio.h>
 #include <stdlib.h>
 

Some files were not shown because too many files changed in this diff