more cleanup

This commit is contained in:
Egan Ford 2017-04-16 12:04:32 -06:00
parent 373c4ea6c6
commit baedd4edd8
4 changed files with 9 additions and 10 deletions

Binary file not shown.

Binary file not shown.

View File

@ -6,10 +6,10 @@ int main()
char screen[24][40];
// build table
for (j = 0, i = 0; i < 8; i++, j++) {
linemap[0 + 3 * j] = j;
linemap[1 + 3 * j] = j + 8;
linemap[2 + 3 * j] = j + 16;
for (i = 0; i < 8; i++) {
linemap[0 + 3 * i] = i;
linemap[1 + 3 * i] = i + 8;
linemap[2 + 3 * i] = i + 16;
}
// clear screen

View File

@ -18,10 +18,10 @@ int main()
unsigned char screen[24][40];
// build table
for (j = 0, i = 0; i < 8; i++, j++) {
linemap[0 + j] = 0 + 3 * j;
linemap[8 + j] = 1 + 3 * j;
linemap[16 + j] = 2 + 3 * j;
for (i = 0; i < 8; i++) {
linemap[0 + i] = 0 + 3 * i;
linemap[8 + i] = 1 + 3 * i;
linemap[16 + i] = 2 + 3 * i;
}
// clear screen
@ -42,8 +42,7 @@ int main()
if (line > 23) // ditto
break;
screen[linemap[line]][column] = c | highbit;
column++;
screen[linemap[line]][column++] = c | highbit;
}
// dump to stdout