Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bloom-beacon!usc!hacgate!ashtate!dbase!awd From: awd@dbase.UUCP (Alastair Dallas) Newsgroups: comp.lang.c Subject: Re: Optimizing loops on 8086 Keywords: 8086, Intel, Assembly Language Message-ID: <104@dbase.UUCP> Date: 13 Jun 89 17:53:51 GMT Organization: Ashton Tate Devlopment Center Glendale, Calif. Lines: 19 My thanks to Bruce Evans for pointing out the error in my previous posting about optimal loops on an 8086. Bruce points out that what I identified as the "fast loop" opcode--JCXZ--actually takes the same time as DEC AX JZ I must have been thinking of the LOOP instruction, which is just a hair faster than either of these. In re-researching this topic, I also came across the REP prefix which would really make a loop fly, depending on what you wanted to do in the loop. Have no fear--Ashton-Tate's product line is not being written by dolts who don't remember their assembly language. I haven't written assembly for A-T in a long, long time. /alastair/ Disclaimer: I don't speak for them; they don't speak for me.