From: viktor DOT lundstrom AT mailbox DOT swipnet DOT se (Viktor Lundstrom) Newsgroups: comp.os.msdos.djgpp Subject: ok with negative values in inline asm? Date: Sun, 24 May 1998 16:16:03 GMT Organization: A customer of Tele2 Lines: 11 Message-ID: <35684706.3915845@nntpserver.swip.net> NNTP-Posting-Host: mn8.swip.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cache-Post-Path: mn8!s-13642 AT dialup170-2-8 DOT swipnet DOT se To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I want to either subtract or add 1 to 32-bit register. Would this decrease whatever is in %%edi with 1? : asm ("movb $-1, %%ah addl %%ah, %%edi" : : :"%eax", "%edi"); Or do I have to use a 32bit register (ie. replacing ah with for example ebx)?