2019-11-02 19:47:58 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#define NUMBER 128
|
|
|
|
|
2019-11-02 20:04:11 +00:00
|
|
|
//#define START 32
|
2019-11-03 03:22:16 +00:00
|
|
|
//#define START 40
|
|
|
|
#define START 48
|
2019-11-02 20:04:11 +00:00
|
|
|
|
2019-11-02 19:47:58 +00:00
|
|
|
int main(int argc, char **argv) {
|
|
|
|
|
|
|
|
int i;
|
|
|
|
|
|
|
|
printf("y_lookup_h:\n");
|
|
|
|
|
|
|
|
for(i=0;i<NUMBER;i++) {
|
|
|
|
if (i%8==0) printf(".byte\t");
|
2019-11-02 20:04:11 +00:00
|
|
|
//printf(">(smc%3d+1)",i+START);
|
|
|
|
printf(">($%4X)",0x9000+(i+START)*49+4);
|
2019-11-02 19:47:58 +00:00
|
|
|
if (i%8!=7) printf(",");
|
|
|
|
else printf("\n");
|
|
|
|
}
|
|
|
|
printf("y_lookup_l:\n");
|
|
|
|
for(i=0;i<NUMBER;i++) {
|
|
|
|
if (i%8==0) printf(".byte\t");
|
2019-11-02 20:04:11 +00:00
|
|
|
//printf("<(smc%3d+1)",i+START);
|
|
|
|
printf("<($%4X)",0x9000+(i+START)*49+4);
|
2019-11-02 19:47:58 +00:00
|
|
|
if (i%8!=7) printf(",");
|
|
|
|
else printf("\n");
|
|
|
|
}
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|