No, wrong
ijmp will use Z register implicitely, you must load Z before manually
regards, Michael
> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> gnu.org]Im
> Auftrag von Haase Bjoern (PT-BEU/EMT) *
> Gesendet: Montag, 4. Juli 2005 09:45
> An: Torsten Mohr; avr-gcc-list@nongnu.org
> Betreff: AW: [avr-gcc-list] inline assembler, ijmp, X-Register
>
>
> Actually:
>
> You must use the z register for ijmp. Any other register is illegal.
>
> Yours,
>
> Björn
>
>
> -----Ursprüngliche Nachricht-----
> Von:
> [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED].
org] Im Auftrag von Torsten Mohr
Gesendet: Freitag, 1. Juli 2005 19:53
An: avr-gcc-list@nongnu.org
Betreff: Re: [avr-gcc-list] inline assembler, ijmp, X-Register
Hi,
> Just another guess: What happens if you do something like
>
> uint16_t fptr2 = fptr/2;
> asm("ijmp":: "x" fptr2);
yes, that works. Great, thanks.
It seems it was related to the size of the argument. It has to be 16 bit.
Best regards,
Torsten.
_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
_______________________________________________ AVR-GCC-list mailing list AVR-GCC-list@nongnu.org http://lists.nongnu.org/mailman/listinfo/avr-gcc-list