Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- static const double PI=3.14159265358979;
- void make_packedtab(int nbe,int* tableau)
- {
- static int delta[32000];
- static int delta2[32000];
- for (int i=0;i<nbe-1;i++)
- {
- delta[i]=tableau[i+1]-tableau[i];
- }
- for (int i=0;i<nbe-2;i++)
- {
- delta2[i]=delta[i+1]-delta[i];
- }
- printf(" dc.w %d ; nombre d'element depack\n",nbe);
- printf(" dc.w %d\n",tableau[0]);
- printf(" dc.w %d\n",delta[0]); // value du premier delta tab[0]+delta[0]=tab[1]
- int line=0;
- for (int i=0;i<nbe-1;i+=2)
- {
- int octet=(delta2[i] & 15)*16+(delta2[i+1] & 15);
- if ((i & 31)==0)
- {line++;
- if (line==16)
- {
- printf("\n");
- line=0;
- }
- printf("\n\tdc.b\t %d",octet);}
- else
- {
- printf(",%d",octet);
- }
- }
- printf("\n\n");
- }
- int main()
- {
- int* tab=malloc(32000*sizeof(int));
- tab[512]=0;
- for (int i=0;i<512;i++)
- {
- double angle=i*2*PI/512;
- tab[i]=(32766*sin(angle));
- }
- make_packedtab(512,&tab[0]);
- tab[2048]=0;
- for (int i=0;i<2048;i++)
- {
- double angle=i*2*PI/2048;
- tab[i]=(32766*sin(sin(angle)*PI));
- }
- make_packedtab(2048,&tab[0]);
- tab[8192]=0;
- for (int i=0;i<8192;i++)
- {
- double angle=i*2*PI/8192;
- tab[i]=(32766*sin(PI*sin(sin(angle)*PI)));
- }
- make_packedtab(8192,&tab[0]);
- printf (";fin\n");
- return 0;
- }
- partie asm PACKER.S
- ; depack periodictable
- ; a0 = packed data
- ; a1 = unpacked data
- depackperiod
- lea extnibble,a2
- move.w (a0)+,d0 ; nombre d'element de la table finale
- move.w (a0)+,d1 ; tab[0]
- move.w (a0)+,d2 ; delta[0]=tab[1]-tab[0]
- move.w d0,d3
- subq #2,d3 ; nombre de delta de delta: delta2[0]=delta[1]-delta[0]
- lsr #1,d3
- .ok
- subq #1,d3
- ;bset #0,d3 ; si paire = nb impair d'element on set a +1
- ; si impair nb pair d'lement on ne change rien
- move.w d1,(a1)+ ; tab[0]
- .loop
- add d2,d1 ; tab[0]+delta[0]=tab[1]
- move.w d1,(a1)+
- move.b (a0)+,d4 lire 2 valeur
- move.w d4,d5
- and.w #$F0,d4
- lsr #4,d4
- move.b (a2,d4.w),d4
- ext.w d4
- add d4,d2 : delta2[0]=delta[1]-delta[0] d2= delta[1]=tab[2]-tab[1]
- add d2,d1
- move.w d1,(a1)+
- and.w #$F,d5
- move.b (a2,d5.w),d5
- ext.w d5
- add d5,d2
- dbf d3,.loop
- add d2,d1
- move.w d1,(a1)+
- rts
- extnibble dc.b 0,1,2,3,4,5,6,7,$F8,$f9,$fa,$fb,$fc,$fd,$fe,$ff
- even
- DATA
- packed_sinus_table:
- sin1pack
- dc.w 512 ; nombre d'element depack
- dc.w 0
- dc.w 402
- dc.b 0,241,240,240,240,240,224,255,254,14,13,14,254,239,238,253
- dc.b 253,253,239,207,221,252,238,206,222,206,206,205,221,220,220,235
- dc.b 221,204,205,204,205,189,189,189,188,203,219,203,203,218,204,188
- dc.b 187,203,203,187,202,218,188,187,187,202,203,187,187,187,202,202
- dc.b 202,203,187,187,187,202,203,187,188,186,218,203,187,203,203,188
- dc.b 188,202,219,203,203,219,204,189,189,189,189,204,205,204,205,219
- dc.b 236,220,221,221,206,206,206,222,206,236,253,223,207,237,253,253
- dc.b 254,239,238,254,13,14,14,255,240,224,240,240,240,241,240,0
- dc.b 0,31,16,16,16,16,32,17,18,2,3,2,18,33,34,19
- dc.b 19,19,33,65,51,20,34,66,50,66,66,67,51,52,52,37
- dc.b 51,68,67,68,67,83,83,83,84,69,53,69,69,54,68,84
- dc.b 85,69,69,85,70,54,84,85,85,70,69,85,85,85,70,70
- dc.b 70,69,85,85,85,70,69,85,84,86,54,69,85,69,69,84
- dc.b 84,70,53,69,69,53,68,83,83,83,83,68,67,68,67,53
- dc.b 36,52,51,51,66,66,66,50,66,36,19,49,65,35,19,19
- dc.b 18,33,34,18,3,2,2,17,16,32,16,16,16,31,16,0
- even
- sin2pack
- dc.w 2048 ; nombre d'element depack
- dc.w 0
- dc.w 315
- dc.b 16,241,240,0,240,15,15,0,255,15,240,255,240,255,224,255
- dc.b 255,255,224,239,224,239,239,239,254,254,239,238,254,253,254,253
- dc.b 253,254,238,238,238,237,254,222,238,238,222,237,238,237,237,252
- dc.b 253,237,237,237,238,221,238,221,252,237,238,207,207,206,237,222
- dc.b 222,222,221,238,221,237,237,237,222,237,237,237,237,237,252,238
- dc.b 237,222,238,222,237,238,237,238,237,253,238,237,253,253,253,239
- dc.b 223,223,238,238,239,223,253,254,239,238,254,254,239,254,224,223
- dc.b 255,239,224,208,254,255,254,14,255,14,255,255,14,14,15,240
- dc.b 224,255,15,240,255,15,15,15,241,225,225,240,240,15,0,15
- dc.b 0,15,31,0,0,0,241,15,16,0,0,0,1,0,0,1
- dc.b 0,31,16,16,1,0,1,16,0,17,0,17,242,0,16,17
- dc.b 1,1,1,16,16,17,16,2,1,1,17,1,16,17,16,32
- dc.b 2,1,17,1,47,33,1,17,16,18,0,33,2,1,17,2
- dc.b 16,17,17,17,16,32,18,1,17,16,33,2,1,32,17,17
- dc.b 17,17,2,2,2,2,1,18,1,17,17,16,33,16,33,2
- dc.b 2,1,32,18,1,17,17,17,17,17,17,16,33,2,2,16
- dc.b 18,2,1,32,17,17,17,17,17,17,17,2,16,33,2,2
- dc.b 1,32,17,32,17,17,17,2,17,2,2,2,2,1,17,17
- dc.b 17,16,33,2,1,32,17,17,2,16,32,17,17,17,16,18
- dc.b 1,17,2,1,32,2,16,17,17,1,47,33,1,17,2,0
- dc.b 32,17,16,17,1,17,1,2,0,17,16,16,17,1,1,1
- dc.b 16,16,2,241,16,1,16,0,17,0,1,0,16,31,16,1
- dc.b 0,0,1,0,0,0,0,31,1,240,0,0,15,31,0,15
- dc.b 0,15,0,240,241,225,225,255,15,15,15,240,255,15,240,224
- dc.b 255,14,14,15,255,254,15,254,14,255,254,240,208,239,239,255
- dc.b 208,238,255,238,254,254,239,238,253,255,223,238,238,239,223,223
- dc.b 237,253,253,253,238,237,253,238,237,238,237,238,222,238,221,238
- dc.b 236,253,237,237,237,237,238,221,237,237,237,222,237,222,222,222
- dc.b 221,238,207,207,206,237,236,253,222,237,222,237,237,237,237,252
- dc.b 253,237,238,237,238,222,238,238,222,253,238,238,238,238,253,253
- dc.b 254,253,254,254,239,238,254,255,239,239,224,239,224,239,255,255
- dc.b 240,239,240,255,240,255,15,240,15,15,0,240,0,241,240,16
- dc.b 240,31,16,0,16,1,1,0,17,1,16,17,16,17,32,17
- dc.b 17,17,32,33,32,33,33,33,18,18,33,34,18,19,18,19
- dc.b 19,18,34,34,34,35,18,50,34,34,50,35,34,35,35,20
- dc.b 19,35,35,35,34,51,34,51,20,35,34,65,65,66,35,50
- dc.b 50,50,51,34,51,35,35,35,50,35,35,35,35,35,20,34
- dc.b 35,50,34,50,35,34,35,34,35,19,34,35,19,19,19,33
- dc.b 49,49,34,34,33,49,19,18,33,34,18,18,33,18,32,49
- dc.b 17,33,32,48,18,17,18,2,17,2,17,17,2,2,1,16
- dc.b 32,17,1,16,17,1,1,1,31,47,47,16,16,1,0,1
- dc.b 0,1,241,0,0,0,31,1,240,0,0,0,15,0,0,15
- dc.b 0,241,240,240,15,0,15,240,0,255,0,255,30,0,240,255
- dc.b 15,15,15,240,240,255,240,14,15,15,255,15,240,255,240,224
- dc.b 14,15,255,15,225,239,15,255,240,254,0,239,14,15,255,14
- dc.b 240,255,255,255,240,224,254,15,255,240,239,14,15,224,255,255
- dc.b 255,255,14,14,14,14,15,254,15,255,255,240,239,240,239,14
- dc.b 14,15,224,254,15,255,255,255,255,255,255,240,239,14,14,240
- dc.b 254,14,15,224,255,255,255,255,255,255,255,14,240,239,14,14
- dc.b 15,224,255,224,255,255,255,14,255,14,14,14,14,15,255,255
- dc.b 255,240,239,14,15,224,255,255,14,240,224,255,255,255,240,254
- dc.b 15,255,14,15,224,14,240,255,255,15,225,239,15,255,14,0
- dc.b 224,255,240,255,15,255,15,14,0,255,240,240,255,15,15,15
- dc.b 240,240,14,31,240,15,240,0,255,0,15,0,240,241,240,15
- dc.b 0,0,15,0,0,0,0,241,15,16,0,0,1,241,0,1
- dc.b 0,1,0,16,31,47,47,17,1,1,1,16,17,1,16,32
- dc.b 17,2,2,1,17,18,1,18,2,17,18,16,48,33,33,17
- dc.b 48,34,17,34,18,18,33,34,19,17,49,34,34,33,49,49
- dc.b 35,19,19,19,34,35,19,34,35,34,35,34,50,34,51,34
- dc.b 36,19,35,35,35,35,34,51,35,35,35,50,35,50,50,50
- dc.b 51,34,65,65,66,35,36,19,50,35,50,35,35,35,35,20
- dc.b 19,35,34,35,34,50,34,34,50,19,34,34,34,34,19,19
- dc.b 18,19,18,18,33,34,18,17,33,33,32,33,32,33,17,17
- dc.b 16,33,16,17,16,17,1,16,1,1,0,16,0,31,16,0
- sin3pack
- dc.w 8192 ; nombre d'element depack
- dc.w 0
- dc.w 248
- dc.b 0,241,0,241,240,0,15,0,15,0,240,15,0,240,240,240
- dc.b 240,255,0,255,15,240,255,14,30,14,0,239,15,255,255,14
- dc.b 14,14,14,14,14,255,14,224,254,14,255,224,239,254,255,255
- dc.b 239,239,255,239,254,254,255,239,254,224,208,238,255,238,255,239
- dc.b 239,239,238,13,255,238,255,208,238,254,239,254,239,239,238,255
- dc.b 238,254,254,239,254,239,238,255,238,255,238,254,254,254,224,223
- dc.b 254,254,254,254,254,255,238,13,13,14,254,254,255,254,224,238
- dc.b 14,224,239,239,255,224,238,14,255,254,14,254,15,239,240,208
- dc.b 255,224,254,14,240,224,224,224,224,255,255,255,14,15,255,240
- dc.b 224,14,14,30,15,255,15,15,240,225,224,15,240,255,0,255
- dc.b 15,0,255,0,240,240,240,15,15,30,31,15,0,15,0,240
- dc.b 0,15,0,241,240,0,15,0,30,16,15,31,0,31,0,0
- dc.b 0,0,15,16,31,0,0,31,31,16,0,0,1,241,0,1
- dc.b 241,0,0,16,0,1,0,1,0,1,241,31,16,31,17,241
- dc.b 1,241,31,17,241,31,17,0,1,0,16,16,1,0,16,16
- dc.b 1,1,0,16,16,1,1,0,17,242,241,16,1,1,1,0
- dc.b 17,0,16,16,1,16,1,1,1,1,1,1,0,17,242,0
- dc.b 16,16,16,16,16,16,2,241,16,1,16,1,1,16,1,1
- dc.b 1,1,1,1,1,1,0,47,17,0,17,0,17,0,16,17
- dc.b 242,0,16,2,241,16,16,1,16,1,16,1,1,1,1,0
- dc.b 17,1,242,0,16,16,16,16,1,16,1,1,1,1,0,17
- dc.b 242,242,242,241,16,1,1,0,47,16,16,16,16,1,31,47
- dc.b 17,0,16,16,1,16,0,17,0,16,16,1,31,17,0,16
- dc.b 16,1,1,1,242,241,16,1,0,17,241,16,1,0,16,16
- dc.b 1,0,16,16,31,17,0,16,1,1,0,1,31,17,0,1
- dc.b 1,0,1,31,17,241,31,17,241,31,17,241,31,17,241,31
- dc.b 16,16,0,16,1,0,16,0,16,1,0,1,1,241,1,241
- dc.b 1,0,0,16,31,16,1,0,1,241,31,16,0,16,0,31
- dc.b 16,31,16,0,16,0,1,241,1,241,241,1,241,241,1,240
- dc.b 16,0,1,241,0,0,0,16,241,0,1,241,241,15,16,1
- dc.b 240,31,1,15,16,0,0,0,0,1,240,1,240,31,1,241
- dc.b 240,31,1,240,31,0,1,240,0,15,16,15,31,31,1,240
- dc.b 0,241,15,31,0,0,0,241,240,0,15,31,0,0,15,1
- dc.b 225,15,31,15,31,31,241,241,255,31,31,241,240,0,240,0
- dc.b 241,225,15,0,240,0,240,0,240,15,31,241,255,31,15,31
- dc.b 241,255,31,15,0,15,241,240,241,225,240,240,15,0,240,15
- dc.b 0,240,240,15,15,30,31,241,255,0,240,15,15,15,30,31
- dc.b 240,15,0,240,240,240,15,15,0,240,240,240,15,15,15,0
- dc.b 240,240,240,15,15,15,0,255,30,31,240,15,15,15,0,255
- dc.b 30,31,240,15,241,255,15,0,240,240,15,241,224,0,255,0
- dc.b 240,240,15,15,15,0,255,30,31,241,225,225,240,240,240,15
- dc.b 241,255,0,240,15,241,255,0,240,15,241,255,30,31,241,255
- dc.b 0,240,15,0,240,240,15,0,240,15,15,30,31,15,0,15
- dc.b 15,0,241,225,240,241,255,0,15,30,31,15,30,16,255,31
- dc.b 0,240,0,240,15,31,241,240,241,240,15,0,15,31,241,240
- dc.b 0,240,0,240,30,31,31,15,31,0,241,240,0,241,240,15
- dc.b 31,0,0,240,31,241,15,0,0,15,31,0,0,15,1,240
- dc.b 0,241,241,240,0,0,241,241,240,0,0,15,16,240,31,0
- dc.b 0,0,0,241,15,31,31,1,240,0,31,0,0,0,241,0
- dc.b 0,241,0,15,16,241,0,241,0,15,16,0,241,0,0,0
- dc.b 0,0,31,0,1,241,241,241,241,0,241,0,0,1,240,31
- dc.b 31,16,241,0,1,240,1,241,15,16,0,31,1,241,15,16
- dc.b 31,0,16,241,0,0,31,31,16,0,0,31,16,0,0,1
- dc.b 241,0,0,1,241,0,0,31,16,241,31,1,15,16,31,31
- dc.b 16,0,31,16,0,0,16,0,0,1,0,0,1,241,0,31
- dc.b 31,16,31,31,16,1,241,0,0,31,16,1,241,15,47,1
- dc.b 0,0,31,16,31,1,0,1,241,0,0,16,0,1,241,0
- dc.b 31,16,0,1,0,0,31,16,1,241,0,31,31,17,241,241
- dc.b 1,241,0,0,16,0,0,16,0,31,16,1,241,0,0,16
- dc.b 0,1,0,0,31,16,31,31,17,241,241,1,241,0,0,16
- dc.b 0,1,0,0,31,16,31,31,47,1,241,31,1,0,1,15
- dc.b 47,1,0,0,31,17,240,16,0,31,16,1,241,0,31,16
- dc.b 0,16,241,31,16,0,1,0,0,31,16,31,16,0,1,0
- dc.b 0,16,0,1,15,47,1,0,1,241,0,31,16,0,16,0
- dc.b 0,16,0,31,16,1,241,0,1,15,47,1,0,0,16,0
- dc.b 1,0,0,31,16,31,16,0,1,0,0,31,17,240,16,0
- dc.b 31,16,1,241,0,31,16,0,16,241,31,16,0,1,15,47
- dc.b 1,0,1,15,17,241,15,47,31,16,31,16,0,1,0,0
- dc.b 16,0,1,241,1,241,241,31,31,16,31,16,0,1,0,0
- dc.b 16,0,1,241,0,31,16,0,16,0,0,16,0,1,241,1
- dc.b 241,241,31,31,16,1,241,0,31,16,0,1,0,0,31,16
- dc.b 1,241,0,0,16,0,1,241,0,1,15,16,31,16,0,1
- dc.b 15,47,1,241,0,31,16,0,1,241,0,31,31,16,31,31
- dc.b 16,1,241,0,0,1,0,0,0,16,0,0,31,16,0,31
- dc.b 31,16,31,1,15,17,240,31,16,0,1,241,0,0,1,241
- dc.b 0,0,0,31,16,0,0,31,31,16,0,1,240,16,15,16
- dc.b 31,1,241,15,16,0,31,1,241,0,241,0,1,240,31,31
- dc.b 16,241,0,0,1,240,1,241,241,241,241,0,15,16,0,0
- dc.b 0,0,1,240,0,31,0,1,240,1,240,31,0,1,240,0
- dc.b 1,240,0,0,15,16,0,241,15,31,31,1,240,0,0,0
- dc.b 15,16,240,31,0,0,0,241,241,240,0,0,241,241,240,0
- dc.b 241,15,0,0,15,31,0,0,15,1,255,16,240,0,15,31
- dc.b 0,241,240,0,241,240,15,31,15,31,30,16,240,0,240,0
- dc.b 241,255,31,0,15,0,241,240,241,255,31,0,240,0,240,15
- dc.b 31,240,30,31,15,30,31,0,15,241,240,241,225,240,15,15
- dc.b 0,15,15,30,31,15,0,240,15,0,240,240,15,0,240,15
- dc.b 241,255,30,31,241,255,0,240,15,241,255,0,240,15,241,255
- dc.b 0,240,240,241,225,225,255,30,31,240,15,15,15,0,240,240
- dc.b 15,240,0,225,255,0,240,240,15,15,241,255,0,255,30,31
- dc.b 240,15,15,15,0,255,30,31,240,15,15,15,0,240,240,240
- dc.b 15,15,15,0,240,240,240,15,15,0,240,240,240,15,0,255
- dc.b 30,31,15,15,0,240,15,241,255,30,31,15,0,240,240,15
- dc.b 0,240,15,0,240,241,225,240,241,255,0,15,15,31,241,255
- dc.b 31,15,31,241,255,31,0,240,0,240,0,240,15,1,225,240
- dc.b 0,240,0,241,255,31,31,241,241,255,31,31,15,31,1,225
- dc.b 15,0,0,15,31,0,0,241,240,0,0,15,31,1,240,0
- dc.b 241,15,31,31,0,31,0,0,241,0,15,16,241,15,16,241
- dc.b 241,15,16,241,0,241,0,0,0,0,0,31,1,15,16,241
- dc.b 0,31,1,241,241,0,1,240,16,0,0,1,241,0,0,16
- dc.b 241,1,241,241,1,241,241,1,241,0,0,16,0,31,16,31
- dc.b 16,0,16,0,31,17,241,0,1,0,31,16,16,0,1,1
- dc.b 241,1,241,1,0,1,0,16,0,16,1,0,16,0,16,31
- dc.b 17,241,31,17,241,31,17,241,31,17,241,31,17,0,1,1
- dc.b 0,1,31,17,0,1,1,0,16,1,31,16,16,16,1,0
- dc.b 16,16,1,0,17,241,16,1,0,17,242,241,1,1,0,16
- dc.b 16,1,31,17,0,16,16,1,16,0,17,0,16,16,1,31
- dc.b 47,17,0,16,16,16,31,32,1,1,0,17,242,242,242,241
- dc.b 16,1,1,1,1,0,17,0,16,16,16,16,2,241,1,16
- dc.b 1,1,1,1,0,17,0,17,0,16,17,242,0,16,2,241
- dc.b 16,16,1,16,1,16,1,31,32,1,1,1,1,1,1,1
- dc.b 1,0,17,1,0,17,0,17,242,0,16,16,16,16,16,16
- dc.b 2,241,16,1,1,1,1,1,1,0,17,0,16,16,1,16
- dc.b 1,1,1,0,17,242,241,16,1,1,0,16,16,1,1,0
- dc.b 16,16,1,0,16,16,1,0,1,31,17,241,31,17,241,1
- dc.b 241,31,16,31,17,241,0,1,0,1,0,0,16,0,1,241
- dc.b 0,1,241,0,0,0,31,31,16,0,15,16,31,0,0,0
- dc.b 0,15,16,15,31,0,30,16,15,0,0,241,240,15,0,0
- dc.b 240,15,0,15,15,30,31,15,0,240,240,240,15,240,15,15
- dc.b 240,15,240,255,0,225,224,255,15,15,255,14,30,14,0,224
- dc.b 255,255,14,15,255,255,240,224,224,224,224,254,14,240,239,240
- dc.b 208,255,239,14,254,14,255,254,14,224,239,255,239,224,238,14
- dc.b 224,238,255,254,254,254,13,13,14,239,254,254,254,254,254,255
- dc.b 208,238,254,254,254,239,254,239,254,239,238,255,238,254,254,239
- dc.b 254,239,239,238,255,238,254,224,223,254,239,253,14,239,239,239
- dc.b 239,254,239,254,224,208,238,255,239,254,254,255,239,255,239,239
- dc.b 255,254,255,224,239,254,14,240,238,15,254,14,14,14,14,14
- dc.b 15,255,255,15,224,14,14,30,15,240,255,15,240,15,240,240
- dc.b 240,240,240,15,0,240,15,0,15,0,0,241,240,1,240,0
- dc.b 0,31,0,31,16,0,1,0,1,0,16,1,0,16,16,16
- dc.b 16,17,0,17,1,16,17,2,242,2,0,33,1,17,17,2
- dc.b 2,2,2,2,2,17,2,32,18,2,17,32,33,18,17,17
- dc.b 33,33,17,33,18,18,17,33,18,32,48,34,17,34,17,33
- dc.b 33,33,34,3,17,34,17,48,34,18,33,18,33,33,34,17
- dc.b 34,18,18,33,18,33,34,17,34,17,34,18,18,18,32,49
- dc.b 18,18,18,18,18,17,34,3,3,2,18,18,17,18,32,34
- dc.b 2,32,33,33,17,32,34,2,17,18,2,18,1,33,16,48
- dc.b 17,32,18,2,16,32,32,32,32,17,17,17,2,1,17,16
- dc.b 32,2,2,242,1,17,1,1,16,47,32,1,16,17,0,17
- dc.b 1,0,17,0,16,16,16,1,1,242,241,1,0,1,0,16
- dc.b 0,1,0,31,16,0,1,0,242,240,1,241,0,241,0,0
- dc.b 0,0,1,240,241,0,0,241,241,240,0,0,15,31,0,15
- dc.b 31,0,0,240,0,15,0,15,0,15,31,241,240,241,255,31
- dc.b 15,31,241,255,31,241,255,0,15,0,240,240,15,0,240,240
- dc.b 15,15,0,240,240,15,15,0,255,30,31,240,15,15,15,0
- dc.b 255,0,240,240,15,240,15,15,15,15,15,15,0,255,30,0
- dc.b 240,240,240,240,240,240,14,31,240,15,240,15,15,240,15,15
- dc.b 15,15,15,15,15,15,0,225,255,0,255,0,255,0,240,255
- dc.b 30,0,240,14,31,240,240,15,240,15,240,15,15,15,15,0
- dc.b 255,15,30,0,240,240,240,240,15,240,15,15,15,15,0,255
- dc.b 30,30,30,31,240,15,15,0,225,240,240,240,240,15,241,225
- dc.b 255,0,240,240,15,240,0,255,0,240,240,15,241,255,0,240
- dc.b 240,15,15,15,30,31,240,15,0,255,31,240,15,0,240,240
- dc.b 15,0,240,240,241,255,0,240,15,15,0,15,241,255,0,15
- dc.b 15,0,15,241,255,31,241,255,31,241,255,31,241,255,31,241
- dc.b 240,240,0,240,15,0,240,0,240,15,0,15,15,31,15,31
- dc.b 15,0,0,240,241,240,15,0,15,31,241,240,0,240,0,241
- dc.b 240,241,240,0,240,0,15,31,15,31,31,15,31,31,15,16
- dc.b 240,0,15,31,0,0,0,240,31,0,15,31,31,1,240,15
- dc.b 16,241,15,1,240,0,0,0,0,15,16,15,16,241,15,31
- dc.b 16,241,15,16,241,0,15,16,0,1,240,1,241,241,15,16
- dc.b 0,31,1,241,0,0,0,31,16,0,1,241,0,0,1,15
- dc.b 47,1,241,1,241,241,31,31,17,241,241,31,16,0,16,0
- dc.b 31,47,1,0,16,0,16,0,16,1,241,31,17,241,1,241
- dc.b 31,17,241,1,0,1,31,16,31,47,16,16,1,0,16,1
- dc.b 0,16,16,1,1,242,241,31,17,0,16,1,1,1,242,241
- dc.b 16,1,0,16,16,16,1,1,0,16,16,16,1,1,1,0
- dc.b 16,16,16,1,1,1,0,17,242,241,16,1,1,1,0,17
- dc.b 242,241,16,1,31,17,1,0,16,16,1,31,32,0,17,0
- dc.b 16,16,1,1,1,0,17,242,241,31,47,47,16,16,16,1
- dc.b 31,17,0,16,1,31,17,0,16,1,31,17,242,241,31,17
- dc.b 0,16,1,0,16,16,1,0,16,1,1,242,241,1,0,1
- dc.b 1,0,31,47,16,31,17,0,1,242,241,1,242,240,17,241
- dc.b 0,16,0,16,1,241,31,16,31,16,1,0,1,241,31,16
- dc.b 0,16,0,16,242,241,241,1,241,0,31,16,0,31,16,1
- dc.b 241,0,0,16,241,31,1,0,0,1,241,0,0,1,15,16
- dc.b 0,31,31,16,0,0,31,31,16,0,0,1,240,16,241,0
- dc.b 0,0,0,31,1,241,241,15,16,0,241,0,0,0,31,0
- dc.b 0,31,0,1,240,31,0,31,0,1,240,0,31,0,0,0
- dc.b 0,0,241,0,15,31,31,31,31,0,31,0,0,15,16,241
- dc.b 241,240,31,0,15,16,15,31,1,240,0,241,15,31,1,240
- dc.b 241,0,240,31,0,0,241,241,240,0,0,241,240,0,0,15
- dc.b 31,0,0,15,31,0,0,241,240,31,241,15,1,240,241,241
- dc.b 240,0,241,240,0,0,240,0,0,15,0,0,15,31,0,241
- dc.b 241,240,241,241,240,15,31,0,0,241,240,15,31,1,225,15
- dc.b 0,0,241,240,241,15,0,15,31,0,0,240,0,15,31,0
- dc.b 241,240,0,15,0,0,241,240,15,31,0,241,241,255,31,31
- dc.b 15,31,0,0,240,0,0,240,0,241,240,15,31,0,0,240
- dc.b 0,15,0,0,241,240,241,241,255,31,31,15,31,0,0,240
- dc.b 0,15,0,0,241,240,241,241,225,15,31,241,15,0,15,1
- dc.b 225,15,0,0,241,255,16,240,0,241,240,15,31,0,241,240
- dc.b 0,240,31,241,240,0,15,0,0,241,240,241,240,0,15,0
- dc.b 0,240,0,15,1,225,15,0,15,31,0,241,240,0,240,0
- dc.b 0,240,0,241,240,15,31,0,15,1,225,15,0,0,240,0
- dc.b 15,0,0,241,240,241,240,0,15,0,0,241,255,16,240,0
- dc.b 241,240,15,31,0,241,240,0,240,31,241,240,0,15,1,225
- dc.b 15,0,15,1,255,31,1,225,241,240,241,240,0,15,0,0
- dc.b 240,0,15,31,15,31,31,241,241,240,241,240,0,15,0,0
- dc.b 240,0,15,31,0,241,240,0,240,0,0,240,0,15,31,15
- dc.b 31,31,241,241,240,15,31,0,241,240,0,15,0,0,241,240
- dc.b 15,31,0,0,240,0,15,31,0,15,1,240,241,240,0,15
- dc.b 1,225,15,31,0,241,240,0,15,31,0,241,241,240,241,241
- dc.b 240,15,31,0,0,15,0,0,0,240,0,0,241,240,0,241
- dc.b 241,240,241,15,1,255,16,241,240,0,15,31,0,0,15,31
- dc.b 0,0,0,241,240,0,0,241,241,240,0,15,16,240,1,240
- dc.b 241,15,31,1,240,0,241,15,31,0,31,0,15,16,241,241
- dc.b 240,31,0,0,15,16,15,31,31,31,31,0,1,240,0,0
- dc.b 0,0,15,16,0,241,0,15,16,15,16,241,0,15,16,0
- dc.b 15,16,0,0,1,240,0,31,1,241,241,15,16,0,0,0
- dc.b 1,240,16,241,0,0,0,31,31,16,0,0,31,31,16,0
- dc.b 31,1,0,0,1,241,0,0,1,15,17,240,16,0,1,241
- dc.b 0,31,16,0,31,16,1,241,1,241,242,240,16,0,16,0
- dc.b 31,17,241,0,1,0,31,16,31,17,241,0,16,0,16,1
- dc.b 241,16,242,241,1,242,241,0,1,31,16,31,47,16,1,1
- dc.b 0,1,1,242,241,1,0,16,1,0,16,16,1,0,16,1
- dc.b 31,17,242,241,31,17,0,16,1,31,17,0,16,1,31,17
- dc.b 0,16,16,31,47,47,17,242,241,16,1,1,1,0,16,16
- dc.b 1,16,0,47,17,0,16,16,1,1,31,17,0,17,242,241
- dc.b 16,1,1,1,0,17,242,241,16,1,1,1,0,16,16,16
- dc.b 1,1,1,0,16,16,16,1,1,0,16,16,16,1,0,17
- dc.b 242,241,1,1,0,16,1,31,17,242,241,1,0,16,16,1
- dc.b 0,16,1,0,16,31,47,16,31,17,0,1,1,241,31,17
- dc.b 241,1,241,31,17,241,0,16,0,16,0,16,1,15,47,16
- dc.b 0,16,0,31,17,241,241,31,31,17,241,241,1,241,15,47
- dc.b 1,0,0,1,241,0,0,31,16,0,0,1,241,15,16,0
- dc.b 31,1,241,241,0,241,0,0,31,0,1,240,31,1,240,31
- dc.b 31,1,240,31,0,31,0,0,0,0,0,241,15,1,240,31
- dc.b 0,241,15,31,31,0,15,16,240,0,0,15,31,0,0,240
- dc.b 31,15,31,31,15,31,31,15,31,0,0,240,0,241,240,241
- dc.b 240,0,240,0,241,255,31,0,15,0,241,240,240,0,15,15
- dc.b 31,15,31,15,0,15,0,240,0,240,15,0,240,0,240,241
- dc.b 255,31,241,255,31,241,255,31,241,255,31,241,255,0,15,15
- dc.b 0,15,241,255,0,15,15,0,240,15,241,240,240,240,15,0
- dc.b 240,240,15,0,255,31,240,15,0,255,30,31,15,15,0,240
- dc.b 240,15,241,255,0,240,240,15,240,0,255,0,240,240,15,241
- dc.b 225,255,0,240,240,240,241,224,15,15,0,255,30,30,30,31
- dc.b 240,15,15,15,15,0,255,0,240,240,240,240,14,31,15,240
- dc.b 15,15,15,15,0,255,0,255,0,240,255,30,0,240,14,31
- dc.b 240,240,15,240,15,240,15,241,224,15,15,15,15,15,15,15
- dc.b 15,0,255,15,0,255,0,255,30,0,240,240,240,240,240,240
- dc.b 14,31,240,15,15,15,15,15,15,0,255,0,240,240,15,240
- dc.b 15,15,15,0,255,30,31,240,15,15,0,240,240,15,15,0
- dc.b 240,240,15,0,240,240,15,0,15,241,255,31,241,255,31,15
- dc.b 31,241,240,241,255,31,0,15,0,15,0,0,240,0,15,31
- dc.b 0,15,31,0,0,0,241,241,240,0,1,240,241,0,0,0
- dc.b 0,1,240,1,241,0,242,240,1,0,0,31,16,1,0,0
- dc.b 16,1,0,1,1,242,241,1,0,16,16,16,1,16,1,1
- dc.b 16,1,16,17,0,47,32,17,1,1,17,2,242,2,0,32
- dc.b 17,17,2,1,17,17,16,32,32,32,32,18,2,16,33,16
- dc.b 48,17,33,2,18,2,17,18,2,32,33,17,33,32,34,2
- dc.b 32,34,17,18,18,18,3,3,2,33,18,18,18,18,18,17
- dc.b 48,34,18,18,18,33,18,33,18,33,34,17,34,18,18,33
- dc.b 18,33,33,34,17,34,18,32,49,18,33,19,2,33,33,33
- dc.b 33,18,33,18,32,48,34,17,33,18,18,17,33,17,33,33
- dc.b 17,18,17,32,33,18,2,16,34,1,18,2,2,2,2,2
- dc.b 1,17,17,1,32,2,2,242,1,16,17,1,16,1,16,16
- dc.b 16,16,16,1,0,16,1,0,1,0,0,31,16,15,16,0
- even
- BSS
- amp1 ds.w 512
- amp2 ds.w 2048
- amp3 ds.w 8192
- amp4
- ; deuxieme routine asm TSTPACK.S
- jmp pcstart
- include "packer.s"
- TEXT
- pcstart
- lea amp1,a1
- lea sin1pack,a0
- jsr depackperiod
- lea sin2pack,a0
- jsr depackperiod
- lea sin3pack,a0
- jsr depackperiod
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement