From: Keith Hull Newsgroups: comp.os.msdos.djgpp Subject: Bitwise ASM with DJGPP GCC Date: Tue, 13 May 1997 21:30:19 +0100 Message-ID: <1997051321301977565@zetnet.co.uk> NNTP-Posting-Host: crescent.zetnet.co.uk Lines: 28 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hi everyone, I would like some help with GCC and inline asm (i've looked at Brennan's Guide to Inline ASM - it seems to make sense ;) .... heres my problem.. asm ("rorl _val, _num_of_rotates"); asm ("roll _val, _num_of_rotates"); asm ("sall _val, _num_of_rotates"); asm ("sarl _val, _num_of_rotates"); asm ("shll _val, _num_of_rotates"); asm ("shrl _val, _num_of_rotates"); none of the above statements compile under GCC!! They seem to have a problem with the first operand! Can anyone shed any light, i'm completely baffled. Regards, Keith -- Keith Hull - Bournemouth keithh AT zetnet DOT co DOT uk keithh AT yeomanh DOT spsxch DOT p4 DOT sps DOT co DOT uk