[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Videx 80 Column Card HELP!!!
- Subject: Re: Videx 80 Column Card HELP!!!
- From: david@wraith.cs.uow.edu.au (David E A Wilson)
- Date: 13 Sep 1993 12:03:57 +1000
- Newsgroups: comp.sys.apple2
- Organization: University of Wollongong, NSW, Australia.
- References: <koch.747579470@sylt>
koch@sylt.informatik.uni-kl.de (Peter Koch - DA Gesmann) writes:
>Does anybody know, how the characters are stored in the character rom
>of a videx 80 column card? For example: which bytes of the rom contain
>the bit-patterns for the character "A"?
Assuming that the card I have is a Videx clone (two character EPROMs, one
has normal characters and the other has Japanese characters) and that you
have a hex dump of the EPROM in question, the following program may help.
#include <stdio.h>
char cg[4096]; /* big enough for 2732 */
/* if necessary */
main()
{
int i,h,l,b, r;
for (i = 0; scanf("%x", &h) == 1; i++) /* Read into memory for */
cg[i] = h; /* random access */
fprintf(stderr, "Read %d bytes\n", i);
for (h = 0; h < 32; h++) /* 5 scan lines to CG */
for (r = 0; r < 16; r++) /* 16 bytes per line */
{
for (l = 0; l < 8; l++) /* 8 bits per byte */
for (b = 0x80; b; b >>= 1)
putchar((cg[h * 128 + l * 16 + r] & b) ? '*' : ' ');
putchar('\n');
}
}
Here is a portion of the input & output this program expects/generates.
Input:
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
FF FF FF 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 FF FF FF 00 00 00 00 00 00 00 00 00 00
FF FF FF FF FF FF 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 FF FF FF 00 00 00 00 00 00 00
FF FF FF 00 00 00 FF FF FF 00 00 00 00 00 00 00
00 00 00 FF FF FF FF FF FF 00 00 00 00 00 00 00
FF FF FF FF FF FF FF FF FF 00 00 00 00 00 00 00
E0 90 E0 9E F0 0C 02 1C 00 00 00 00 00 00 00 00
90 90 F0 90 BE 08 08 08 00 00 00 00 00 00 00 00
80 80 80 9E F0 18 10 10 00 00 00 00 00 00 00 00
88 88 50 20 3E 08 08 08 00 00 00 00 00 00 00 00
F0 80 C0 9E 90 18 10 10 00 00 00 00 00 00 00 00
70 80 80 7C 12 1C 14 12 00 00 00 00 00 00 00 00
70 80 60 10 EC 12 12 0C 00 00 00 00 00 00 00 00
70 80 60 1E E4 04 04 0E 00 00 00 00 00 00 00 00
Output:
Read 2048 bytes
******** ******** ******** ********
******** ******** ******** ********
******** ******** ******** ********
**************** ****************
**************** ****************
**************** ****************
********************************
********************************
********************************
*** * * * * * **** *** *** ***
* * * * * * * * * * *
*** **** * * * ** * ** **
* **** * * * **** * * **** ***** * ****
**** * ***** **** ***** * * * * *** ** *** *
** * ** * ** *** * * *
* * * * * * * * * *
*** * * * * * * ** ***
--
David Wilson +61 42 213802 voice, +61 42 213262 fax
Dept Comp Sci, Uni of Wollongong david@cs.uow.edu.au