[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-chat] Need help with simple inline assembly code
From: |
Daniel O'Connor |
Subject: |
Re: [avr-chat] Need help with simple inline assembly code |
Date: |
Wed, 6 Jul 2005 10:46:15 +0930 |
User-agent: |
KMail/1.8 |
On Wed, 6 Jul 2005 08:24, Reza Naima wrote:
> I'm trying to generate a very fast (10mhz-ish) bit train from an avr
> running at ~15mhz. The only way i can think of doing it is using inline
> assembly. I've been trying to compile something like tihs, but I'm
> getting no love. Any suggestions?
I think you'll find the compiler is quite good at generating IO instructions
with minimal room.
Did you try it and see what the outputted code was like?
Also you can generate more readible inline code by doing..
asm volatile( "foo"
"bar");
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
pgpNcRA5h9wff.pgp
Description: PGP signature