home *** CD-ROM | disk | FTP | other *** search
- /* «RM120»«PL99999»«TS4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76» */
- #include <stdio.h>
- #define EXTERN extern
- #include <typedef.h>
-
-
- void DC(C)
- unsigned char C;
- {
- int i, j, y;
- unsigned offset;
-
- y = 8 * YTextGlb;
- j = 8 * C;
-
- for (i = 0; i < 8; i++) {
- pokeb(BaseAddress(y++) + XTextGlb, GrafBase, Font[j++]);
- }
- }
-
-
- void DisplayChar(C)
- int C;
- {
- struct regval regs;
-
- if (!GrafModeGlb)
- return;
-
- if (C == 8) {
- if (XTextGlb > 1)
- XTextGlb--;
- }
- else if (C == 10) {
- if (YTextGlb < 25)
- YTextGlb++;
- }
- else if (C == 13) {
- XTextGlb = 1;
- }
- else {
- DC(C);
- if (XTextGlb < 80)
- XTextGlb++;
- }
- }
-
-
- void DisplayString(str)
- char *str;
- {
- while (*str != EOS)
- DisplayChar(*(str++));
- }
-
-