mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-28 09:30:41 +00:00
35 lines
606 B
C
35 lines
606 B
C
#include <stdio.h>
|
|
|
|
#define NUMBER 128
|
|
|
|
#define START 32
|
|
//#define START 40
|
|
//#define START 48
|
|
|
|
#define OFFSET 0x9800
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
int i;
|
|
|
|
printf("y_lookup2_h:\n");
|
|
|
|
for(i=0;i<NUMBER;i++) {
|
|
if (i%8==0) printf(".byte\t");
|
|
//printf(">(smc%3d+1)",i+START);
|
|
printf(">($%4X)",OFFSET+(i+START)*47+4);
|
|
if (i%8!=7) printf(",");
|
|
else printf("\n");
|
|
}
|
|
printf("y_lookup2_l:\n");
|
|
for(i=0;i<NUMBER;i++) {
|
|
if (i%8==0) printf(".byte\t");
|
|
//printf("<(smc%3d+1)",i+START);
|
|
printf("<($%4X)",OFFSET+(i+START)*47+4);
|
|
if (i%8!=7) printf(",");
|
|
else printf("\n");
|
|
}
|
|
|
|
return 0;
|
|
}
|