dos33fsprogs/demosplash/generator/offsets.c
Vince Weaver d2fe97bced ds: move raster bars down
so not to interfere with text
2019-11-02 23:22:16 -04:00

33 lines
581 B
C

#include <stdio.h>
#define NUMBER 128
//#define START 32
//#define START 40
#define START 48
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");
//printf(">(smc%3d+1)",i+START);
printf(">($%4X)",0x9000+(i+START)*49+4);
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");
//printf("<(smc%3d+1)",i+START);
printf("<($%4X)",0x9000+(i+START)*49+4);
if (i%8!=7) printf(",");
else printf("\n");
}
return 0;
}