/[projet1]/public/oric/demos/SlideShowDemo/code/main.c
Defence Force logotype

Diff of /public/oric/demos/SlideShowDemo/code/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1023 by dbug, Sat Dec 14 14:19:19 2013 UTC revision 1024 by dbug, Sun Dec 15 09:42:42 2013 UTC
# Line 14  extern unsigned char MusicLooped; Line 14  extern unsigned char MusicLooped;
14  extern Mym_Initialize();  extern Mym_Initialize();
15  extern Mym_ReInitialize();  extern Mym_ReInitialize();
16    
17    // transitions.s
18    extern unsigned char PictureLoadBuffer[];
19    extern void PictureTransitionFromTopAndBottom();
20    
21    // scroller.s
22    extern unsigned char FontBuffer[];
23    
24    
25  // loader_api.s  // loader_api.s
26  extern unsigned char LoaderApiEntryIndex;  extern unsigned char LoaderApiEntryIndex;
27    extern unsigned char LoaderApiAddressLow;
28    extern unsigned char LoaderApiAddressHigh;
29    extern void* LoaderApiAddress;
30    
31    extern void SetLoadAddress();
32  extern void LoadFile();  extern void LoadFile();
33    
34  void Pause()  void Pause()
# Line 41  void main() Line 54  void main()
54          MusicLooped=1;          MusicLooped=1;
55    
56          System_InstallIRQ_SimpleVbl();          System_InstallIRQ_SimpleVbl();
57          LoaderApiEntryIndex=LOADER_FIRST_MUSIC;  
58            // Load and play the music
59            LoaderApiEntryIndex=LOADER_FIRST_MUSIC+3;
60          LoadFile();          LoadFile();
61          Mym_ReInitialize();          Mym_ReInitialize();
62    
63        // Load the font
64            LoaderApiEntryIndex=LOADER_FONT_24x20;
65            LoaderApiAddress=FontBuffer;
66            SetLoadAddress();
67            LoadFile();
68    
69          while (1)          while (1)
70          {                        {              
71                  /*                  /*
# Line 65  void main() Line 86  void main()
86                    
87                  for (LoaderApiEntryIndex=LOADER_FIRST_PICTURE;LoaderApiEntryIndex<LOADER_LAST_PICTURE;LoaderApiEntryIndex++)                  for (LoaderApiEntryIndex=LOADER_FIRST_PICTURE;LoaderApiEntryIndex<LOADER_LAST_PICTURE;LoaderApiEntryIndex++)
88                  {                  {
89                            LoaderApiAddress=PictureLoadBuffer;
90                            SetLoadAddress();
91                          LoadFile();                          LoadFile();
92    
93                            //memcpy((unsigned char*)0xa000,PictureLoadBuffer,8000);
94                            PictureTransitionFromTopAndBottom();
95    
96                          Pause();                          Pause();
97                  }                  }
98    
# Line 80  void main() Line 107  void main()
107                  VSync();                  VSync();
108          }          }
109    
110          memset((unsigned char*)0xa000,0,8000);            //memset((unsigned char*)0xa000,0,8000);        
111  }  }
112    
113    
114    
115    

Legend:
Removed from v.1023  
changed lines
  Added in v.1024

  ViewVC Help
Powered by ViewVC 1.1.26