[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] inline asm problem
From: |
whiteman |
Subject: |
Re: [avr-gcc-list] inline asm problem |
Date: |
Fri, 13 Feb 2004 17:18:0 +0800 |
hi,Artur Lipowski:
but I have seen the device datasheet,the instrution is correct,needn't swap
the direction.but I would try your suggestion.
======= 2004-02-13 07:41:00 =======
>whiteman wrote:
>> My GCC version is the latest.
>>
>> Artur_Lipowski: I have read the doc,but I don't found out the
>> problem. Can you tell me the details,I was a newer. thanks!
>You should read it more carefully.
>The first example from mentioned documentation is:
>"Let's start with a simple example of reading a value from port D:
>asm("in 0, 1" : "=r" (value) : "I" (PORTD) : );"
>
>This is opposite what you want but, if you change in into sbi, swap
>input and output parameters and use PORTC instead PORTD then it should
>be what you need.
>
>Regards,
>--
>Artur Lipowski
>
>_______________________________________________
>avr-gcc-list mailing list
>address@hidden
>http://www.avr1.org/mailman/listinfo/avr-gcc-list
= = = = = = = = = = = = = = = = = = = =
Regards
whiteman
address@hidden
2004-02-13
- Re: [avr-gcc-list] inline asm problem, (continued)
- Re: [avr-gcc-list] inline asm problem, Artur Lipowski, 2004/02/12
- Re: [avr-gcc-list] inline asm problem, Clemens Buchacher, 2004/02/13
- [avr-gcc-list] inline asm problem, whiteman, 2004/02/12
- Re: [avr-gcc-list] inline asm problem, whiteman, 2004/02/13
- Re: [avr-gcc-list] inline asm problem,
whiteman <=
- Re: [avr-gcc-list] inline asm problem, whiteman, 2004/02/13