/[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 1024 by dbug, Sun Dec 15 09:42:42 2013 UTC revision 1038 by dbug, Tue Dec 17 21:24:32 2013 UTC
# Line 8  Line 8 
8  // irq.s  // irq.s
9  extern void System_InstallIRQ_SimpleVbl();  extern void System_InstallIRQ_SimpleVbl();
10  extern void VSync();  extern void VSync();
11    extern void Stop();
12    
13  // player.s  // player.s
14  extern unsigned char MusicLooped;  extern unsigned char MusicLooped;
# Line 56  void main() Line 57  void main()
57          System_InstallIRQ_SimpleVbl();          System_InstallIRQ_SimpleVbl();
58    
59          // Load and play the music          // Load and play the music
60          LoaderApiEntryIndex=LOADER_FIRST_MUSIC+3;          LoaderApiEntryIndex=LOADER_FIRST_MUSIC+2;
61          LoadFile();          LoadFile();
62          Mym_ReInitialize();          Mym_ReInitialize();
63    
# Line 66  void main() Line 67  void main()
67          SetLoadAddress();          SetLoadAddress();
68          LoadFile();          LoadFile();
69    
70            /*
71            // Test load compressed file
72            LoaderApiEntryIndex=LOADER_COMPRESSED_TEST;
73            LoaderApiAddress=PictureLoadBuffer+8;
74            SetLoadAddress();
75            LoadFile();
76    
77            PictureLoadBuffer[0]='L';
78            PictureLoadBuffer[1]='Z';
79            PictureLoadBuffer[2]='7';
80            PictureLoadBuffer[3]='7';
81            *((int*)(PictureLoadBuffer+4))=8000;            // Src size
82            *((int*)(PictureLoadBuffer+6))=8000;            // Dst size
83    
84            Stop();
85            file_unpack((unsigned char*)0xa000,PictureLoadBuffer);
86            */
87    
88    
89          while (1)          while (1)
90          {                        {              
91                  /*                  /*

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

  ViewVC Help
Powered by ViewVC 1.1.26