Newsgroups: comp.os.msdos.djgpp Subject: Re: special registers in ASM From: frenchc AT cadvision DOT com (Calvin French) References: <01bd371c$3b3ff0a0$b1fcffc2 AT fsl22 DOT novo DOT dk> <6bt4l8$kn9$1 AT rosenews DOT rose DOT hp DOT com> MIME-Version: 1.0 Content-Type: Text/Plain; charset=US-ASCII NNTP-Posting-Host: ts18ip137.cadvision.com Message-ID: <34e51787.0@news.cadvision.com> Date: 14 Feb 98 04:03:19 GMT Organization: CADVision Development Corporation (http://www.cadvision.com/) Lines: 16 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk >Did you read the instruction timing for them? THe debug registers are 10x >slower than regular registers >(also 10x slower than a push or a pop instruction), and CR3 is 20x slower. >This is on a Pentium. Also, >you can't do anything with them, just move to and from. Rewrite your code >to be more register efficient >or just push/pop. How does push/pop relate time-wise to actually storing/retrieving from memory. I was under the impression the push/pop was rather slow compared to direct memory accessing, but I haven't programmed asm since 386 days (ahhh... =) I'm just getting into it now and finding it quite fun, except I can't get my code to debug under RHIDE at all. :-( - Calvin -