hunt@jjmhome.UUCP (Tad J. Hunt) (05/04/91)
Hello, I was wondering if anyone happens to be selling Prospero Pascal? If so, reply by e-mail with a reasonable price and i'd be glad to take it off your hands. Thanks! 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! Tad Hunt hunt@jjmhome.m2c.org hunt@gnu.ai.mit.edu hunt@control.com
steve@thelake.mn.org (Steve.Yelvington) (05/05/91)
[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 <osbind.h>. 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 <osbind.h> #include <keydef.h> #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