Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!snorkelwacker.mit.edu!stanford.edu!msi.umn.edu!cs.umn.edu!thelake!steve From: steve@thelake.mn.org (Steve.Yelvington) Newsgroups: comp.sys.atari.st Subject: Re: looking for Pascal (and a C question) Message-ID: References: <10192@jjmhome.UUCP> Date: Sun, 5 May 1991 09:48:36 CDT Organization: St. Croix Valley C and Ski Lines: 50 [In article <10192@jjmhome.UUCP>, hunt@jjmhome.UUCP (Tad J. Hunt) writes ... ] > now for part2: > I'm trying to write a simple term program for the st (ie: read a char from > the modem, send to screen, read from kbd send to modem,etc,etc) and am > using sozobon C... when i try to compile it, ld says "undef _Bconin, _C_conout" > etc... does anyone know what library these are in? i have libm.a and dlibs.a > in the directory.. (single floppy :-( ) anyways, thanks for the time! They're macros, not functions. #include . The preprocessor will convert them go the appropriate GEMdos/BIOS calls. Note that Sozobon adds a leading space to external identifiers, so what it can't find is Bconin and C_conout. (Proper spelling of the GEMdos console output routine is Cconout -- no underscore after the C.) Here's a simple term routine that uses only BIOS. #include #include #define AUX 1 #define CON 2 #define KEY_UNDO 0x6100 term() { register int c; register long d; while (1){ if (Bconstat(CON)){ d = Bconin(CON); c = ( (d & 0x00FF) | ( (d>>8) & 0xFF00 ) ); if (c == KEY_UNDO) return; if (c) Bconout(AUX,c); } if (Bconstat(AUX)){ c = Bconin(AUX); Bconout(CON,c); } } } ---- Steve Yelvington, Marine on St. Croix, Minnesota, USA / steve@thelake.mn.org