Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!udel!haven!decuac!bacchus.pa.dec.com!shlump.nac.dec.com!mountn.dec.com!bigq.dec.com!hutzley From: hutzley@bigq.dec.com (Steve Hutzley) Newsgroups: comp.lang.c Subject: Re: ACCESS REGISTERS FROM TURBO C?? Message-ID: <2024@mountn.dec.com> Date: 14 Nov 90 19:54:56 GMT Sender: news@mountn.dec.com Organization: Digital Equipment Corporation Lines: 24 In article <11475@j.cc.purdue.edu>, zhou@brazil.psych.purdue.edu (Albert Zhou) writes... >This question might be silly to some of you. How can I directly access >registers from Turbo C? Look at example void your_funct(int a, int b) { union REGS in, out; r.h.ah = a; r.x.bx = b; int86(0x10, &in, &out); /* call int 10, video */ } r.x. = 16 bits (AX,BX,CX.....) r.h. = 8 bits (either AH, AL) ANY QUESTIONS? Steve