Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!apple!usc!ucsd!dog.ee.lbl.gov!pasteur!cinna!c164-bd From: c164-bd@cinna.uucp (John D. Mitchell) Newsgroups: comp.lang.c Subject: Re: ACCESS REGISTERS FROM TURBO C?? Message-ID: <8903@pasteur.Berkeley.EDU> Date: 15 Nov 90 01:56:36 GMT References: <2024@mountn.dec.com> Sender: news@pasteur.Berkeley.EDU Reply-To: c164-bd@cinna.UUCP (John D. Mitchell) Followup-To: comp.lang.c Distribution: usa Organization: University of California, Berkeley Lines: 25 In article <2024@mountn.dec.com> hutzley@bigq.dec.com (Steve Hutzley) writes: > >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 [deleted] If the original poster wanted *direct* access then see my previous posting. The REGPACK union is really only useful for the DOS intXX() interrupt interface functions. The incur a lot of overhead due to (usually) excessive copying of the union to the actual registers prior to the int call and then copying the registers into the union after the call. The plus is that quite a few DOS compilers support this feature in basically the exact same way. The inline assembly and pseudovariable capabilities of TC will generate (unportable but) faster, smaller code. Good luck, John Mitchell johnm@cory.Berkeley.EDU