head 1.1; access ; symbols ; locks ; comment @ * @; 1.1 date 89.06.12.10.20.43; author pkern; state Exp; branches ; next ; desc @@ 1.1 log @Initial revision @ text @#if (__TURBOC__ == 0x0200) /* * zconout.c: * use DOS for output instead of PC-BIOS * (for those non-PC MS-DOS machines still out there) */ static char RCSid[] = "$Header$"; #include #include #include static union REGS r; static char buf[132*25]; void zputs(const char *p) { r.h.ah = 0x40; r.x.cx = strlen(p); r.x.bx = 1; (char *)r.x.dx = p; intdos(&r, &r); } void zprintf(const char *fmt, ...) { int n; va_list argp; va_start(argp, fmt); n = vsprintf(buf, fmt, argp); va_end(argp); if (n < 0) return; r.h.ah = 0x40; r.x.bx = 1; r.x.cx = n; (char *)r.x.dx = buf; intdos(&r, &r); } zputch(const char c) { r.h.ah = 0x02; r.h.dl = c; intdos(&r, &r); } #endif /* TC 2.0 */ @