Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!seismo!mimsy!eneevax!umd5!brl-adm!adm!oxy!bagpiper@csvax.caltech.EDU From: bagpiper@csvax.caltech.EDU Newsgroups: comp.lang.c Subject: calling ibm video routines in bios Message-ID: <7266@brl-adm.ARPA> Date: Wed, 6-May-87 16:30:50 EDT Article-I.D.: brl-adm.7266 Posted: Wed May 6 16:30:50 1987 Date-Received: Fri, 8-May-87 04:15:59 EDT Sender: news@brl-adm.ARPA Lines: 40 Machine : IBM PC & IBM XT (symptoms the same) w/640K & Mono Card (IBM) Compiler : Datalight C Ver 3.01 I got a piece of code that looks like REGS reg ; . . . void setpos(x,y) int x ; int y ; { reg.ax = 0x0200 ; reg.bx = 0x0000 ; reg.cx = 0x0000 ; reg.dx = y*256+x ; reg.si = 0x0000 ; reg.di = 0x0000 ; int86(0x10,®,®) ; } This should set the cursor position at (x,y) from the upper corner, but it doesn't. In fact a setpos(x,y) followed by a printf(" garbage ") acts as if setpos is never called. But I checked and it is called. Does anyone out there have any ideas. I am not sure 100% that the board is IBM it could be herc....I assume that could cause some headaches. The disp package in the datalight library comes up with the same results. Michael Hunter ARPA : oxy!bagpiper@csvax.caltech.edu BITNET: oxy!bagpiper@hamlet.bitnet CSNET : oxy!bagpiper%csvax.caltech.edu@relay.cs.net UUCP : ....{seismo, ruthers, ames}!cit-vax!oxy!bagpiper usmail: box 241 Occidental College Los Angeles, CA 90041