dos33fsprogs/vaporlock/rasterbars/make_mt.c
Vince Weaver e0febd1a90 demos: more work
keep making git mistakes urgh
2021-01-05 22:52:10 -05:00

23 lines
458 B
C

#include <stdio.h>
int main(int argc, char **argv) {
int i,j;
printf("movement_table:\n");
for(i=0;i<123;i++) {
printf("\t.byte\t$%02X\t; %d -> %d\n",i+1,i,i+1);
}
printf("\t.byte\t$%02X\t; %d -> %d\n",123+0x80,123,123+0x80);
for(i=124;i<128;i++) {
printf("\t.byte\t$%02X\t; %d -> %d\n",123,i,123);
}
printf("\t.byte\t$%02X\t; %d -> %d\n",0,128,0);
for(i=129;i<256;i++) {
printf("\t.byte\t$%02X\t; %d -> %d\n",i-1,i,i-1);
}
return 0;
}