Mail Archives: djgpp/1997/07/12/02:46:04
On Sat, Jul 12, 1997 at 06:22:27AM +0200, Chirayu Krishnappa wrote:
>
> >You'ld be better off using 'setpe' rather than 'jpe', as it't much less
> >expensive:
> >
> >asm volatile("or %1,%1;setpe %b0":"=g"(result):"r"(value):"cc");
> >
> Thanks. I think this was the most efficient of all.
>
> Thanks to everyone who replied. I wanted to try something like this (i knew
> the parity flag) but I'm pretty bad with inline assembly. Why cant DJGPP
> have Borland style asm too, u know asm {........}, so the quotes r not used.
Because DJGPP is GNU, and GNU uses GAS which uses AT&T syntax.
Once being used to this syntax, you will love it :-)
(See Brennan's comment in Brennans inline assembly page)
>
> Thanks n Bye,
>
> Chirayu Krishnappa:
> ------------------
> e-mail: chirayu AT poboxes DOT com
> Phone: 91 080 3332616.
> ============================================================================
> ==========
--
--Chris Christoph P. U. Kukulies kuku AT gil DOT physik DOT rwth-aachen DOT de
- Raw text -