From: Peter Danielsson Newsgroups: comp.os.msdos.djgpp Subject: Help it's crashing! Date: Mon, 06 Jul 1998 00:49:28 +0200 Organization: student Lines: 17 Message-ID: <35A002F8.657C@efd.lth.se> Reply-To: e96pd AT efd DOT lth DOT se NNTP-Posting-Host: cie96ojo.student.lth.se Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Why does my asm code crash when i try to loop? This is working: movb %bl,(%edx) incl %edx movb %bl,(%edx) But NOT this: movw $3,%cx PD: movb %bl,(%edx) incl %edx movb %bl,(%edx) loop PD What must I do to use loop? /Peter