#include "letter.h" // Letters Signatures. #include "display.h" // TV Display Parameters //================================== // put a small character on the screen // x-cood must be on divisible by 4 // c is index into bitmap void video_smallchar(char x, char y, char c) { char mask; int i; i=((int)x>>3) + ((int)y<<4) ; if (x == (x & 0xf8)) mask = 0x0f; //f8 else mask = 0xf0; screen[i] = (screen[i] & mask) | (smallLettersBitmap[c][0] & ~mask); screen[i+16] = (screen[i+16] & mask) | (smallLettersBitmap[c][1] & ~mask); screen[i+32] = (screen[i+32] & mask) | (smallLettersBitmap[c][2] & ~mask); screen[i+48] = (screen[i+48] & mask) | (smallLettersBitmap[c][3] & ~mask); screen[i+64] = (screen[i+64] & mask) | (smallLettersBitmap[c][4] & ~mask); } //================================== // put a string of small characters on the screen // x-cood must be on divisible by 4 void video_putsmalls(char x, char y, char *str) { char i ; for (i=0; str[i]!=0; i++) { if (str[i]>=0x30 && str[i]<=0x3a) video_smallchar(x,y,str[i]-0x30); else if (str[i] == 0x20) video_smallchar(x,y,12); else video_smallchar(x,y,str[i]-0x40+12); x = x+4; } }