\r
//==========================================================================\r
\r
-/*\r
+//for 16_sd\r
+//==========================================================================\r
#pragma pack(push,1)\r
-typedef struct imf_entry {\r
+typedef struct imf_entry\r
+{\r
uint8_t reg,data;\r
uint16_t delay;\r
} imf_entry_t;\r
#pragma pack(pop)\r
-*/\r
+\r
+typedef struct\r
+{\r
+ volatile unsigned long irq0_ticks;//=0;\r
+ volatile unsigned int irq0_cnt,irq0_add,irq0_max;//=0;\r
+ imf_entry_t* imf_music;//=NULL;\r
+ imf_entry_t* imf_play_ptr;//=NULL;\r
+ imf_entry_t* imf_music_end;//=NULL;\r
+ uint16_t imf_delay_countdown;//=0;\r
+} sd_t;\r
\r
//==========================================================================\r
\r
word _seg *grstarts; // array of offsets in egagraph, -1 for sparse//long\r
word _seg *audiostarts; // array of offsets in audio / audiot//long\r
\r
- huffnode huffnode;\r
+ huffnode huffnode;\r
\r
+ sd_t sd;\r
//TODO: extend! and learn from keen/wolf/catacomb's code wwww\r
memptr spribuff;\r
} ca_t;\r