bagpiper@csvax.caltech.EDU (05/06/87)
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