www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/07/07/09:46:44

From: Peter Danielsson <e96pd AT efd DOT lth DOT se>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019