From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- noao/imred/vtel/pixbit.x | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 noao/imred/vtel/pixbit.x (limited to 'noao/imred/vtel/pixbit.x') diff --git a/noao/imred/vtel/pixbit.x b/noao/imred/vtel/pixbit.x new file mode 100644 index 00000000..a6db321a --- /dev/null +++ b/noao/imred/vtel/pixbit.x @@ -0,0 +1,23 @@ +# PIXBIT -- Look up which bits should be set for this character on this line. + +procedure pixbit (code, line, bitarray) + +int code # character we are writing +int line # line of the character we are writing +int bitarray[5] # bit-array to receive data + +int pix, i +short asciilook[128] +short font[455] +int bitupk() +include "pixelfont.inc" +include "asciilook.inc" + +begin + pix = font[asciilook[code+1]+line-1] + bitarray[5] = bitupk (pix, 1, 1) + bitarray[4] = bitupk (pix, 4, 1) + bitarray[3] = bitupk (pix, 7, 1) + bitarray[2] = bitupk (pix, 10, 1) + bitarray[1] = bitupk (pix, 13, 1) +end -- cgit