mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-09-27 11:55:20 +00:00
45 lines
988 B
C
45 lines
988 B
C
#include <stdio.h>
|
|
|
|
unsigned char pixels[12][8]=
|
|
{
|
|
{ 0x00,0x00,0x00,0x00,0xAA,0x81,0x00,0x00 },
|
|
{ 0x00,0x00,0x00,0xC0,0x8A,0x00,0x00,0x00 },
|
|
{ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 },
|
|
{ 0xA0,0xC5,0xAA,0xD5,0x8A,0x00,0x00,0x00 },
|
|
{ 0x88,0xD5,0xAA,0x95,0xAA,0x55,0x2A,0x00 },
|
|
{ 0xAA,0xD1,0x80,0xD5,0xAA,0xD5,0xAA,0x00 },
|
|
{ 0xAA,0xD5,0xAA,0xD5,0xAA,0x55,0x2A,0x00 },
|
|
{ 0xA8,0xD1,0x88,0x95,0xAA,0x00,0x00,0x00 },
|
|
{ 0xA0,0xC5,0xAA,0xD5,0x8A,0x00,0x00,0x00 },
|
|
{ 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 },
|
|
{ 0x00,0x00,0x00,0xC0,0x8A,0x00,0x00,0x00 },
|
|
{ 0x00,0x00,0x00,0x00,0xAA,0x81,0x00,0x00 },
|
|
};
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
int x,y;
|
|
int temp,next,high,nextnext;
|
|
|
|
for(y=0;y<12;y++) {
|
|
printf(".byte ");
|
|
nextnext=0;
|
|
for(x=0;x<8;x++) {
|
|
temp=pixels[y][x];
|
|
high=temp&0x80;
|
|
next=!!(temp&0x40);
|
|
temp=temp<<1;
|
|
temp=temp&0x7f;
|
|
temp|=high;
|
|
temp|=nextnext;
|
|
nextnext=next;
|
|
printf("$%02X,",temp);
|
|
}
|
|
printf("\n");
|
|
}
|
|
|
|
return 0;
|
|
}
|
|
|
|
|