]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_tdef.h
p16 is being worked on a bunch by me wwww [16_ca needs huge amounts of work and I...
[16.git] / src / lib / 16_tdef.h
index c87b272ec44e6a8c392d4121960d2270f6057ba6..22e9812b7be26e8df8948458fcd101e6db326d3e 100755 (executable)
@@ -594,14 +594,25 @@ typedef struct
 \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
@@ -660,8 +671,9 @@ typedef struct      //TODO: USE THIS!!!!
        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