cvs.gedasymbols.org/archives/browse.cgi | search |
From: | viktor DOT lundstrom AT mailbox DOT swipnet DOT se (Viktor Lundstrom) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: ok with negative values in inline asm? |
Date: | Tue, 26 May 1998 17:47:39 GMT |
Organization: | A customer of Tele2 |
Lines: | 14 |
Message-ID: | <356affef.583602@nntpserver.swip.net> |
References: | <35684706 DOT 3915845 AT nntpserver DOT swip DOT net> <356849E9 DOT 65CD AT cam DOT org> |
NNTP-Posting-Host: | mn8.swip.net |
Mime-Version: | 1.0 |
Cache-Post-Path: | mn8!s-13642 AT dialup207-2-16 DOT swipnet DOT se |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
On Sun, 24 May 1998 12:25:13 -0400, Vic <tudor AT cam DOT org> wrote: >why not just use increment/decrement instructions? (Or do you want to >add a bigger negative number? ) I'm coding a line routine, and inc/dec will require an extra test in the inner loop. >anyways, the code y-=2; outputs addl $-2,%eax so I guess, yes, you can >use negative numbers. > >BTW, group: is there an instruction in ASM for substraction, or just >addition? sub?
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |