mirror of
https://github.com/datajerk/c2d.git
synced 2025-01-14 23:30:34 +00:00
added page2text, fixed 40 col bug in text2page
This commit is contained in:
parent
6f38a3d75f
commit
64c48974d4
Binary file not shown.
@ -2,7 +2,6 @@
|
||||
|
||||
int main()
|
||||
{
|
||||
unsigned char c;
|
||||
int i, j, k, linemap[24];
|
||||
unsigned char screen[24][40];
|
||||
|
||||
@ -20,13 +19,11 @@ int main()
|
||||
screen[linemap[i]][j] = ' ';
|
||||
|
||||
for(i=0;i<24;i++) {
|
||||
for(j=0;j<40;j++) {
|
||||
c = getchar();
|
||||
screen[linemap[i]][j] = c & 0x7F;
|
||||
}
|
||||
for(j=0;j<40;j++)
|
||||
screen[linemap[i]][j] = getchar() & 0x7F;
|
||||
if((i + 1) % 3 == 0)
|
||||
for(k=0;k<8;k++)
|
||||
c = getchar();
|
||||
getchar();
|
||||
}
|
||||
|
||||
// dump to stdout
|
||||
|
Loading…
x
Reference in New Issue
Block a user