avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] How to embed assembler "jmp 0x1E00" in C source for A


From: Marek Michalkiewicz
Subject: Re: [avr-gcc-list] How to embed assembler "jmp 0x1E00" in C source for ATmega8 ?
Date: Fri, 12 Jul 2002 15:39:59 +0200 (CEST)

> asm volatile ("jmp 0x1E00");

ATmega8 has 8K of program memory, so use "rjmp" instead.
Does "jmp" work at all (you can assemble it with -Wa,-mall-opcodes)
on ATmega8?  I thought it was only implemented in larger devices...
Perhaps they don't bother to save transistors anymore, and "jmp" is
implemented on all current devices, even the smaller ones where it
is not strictly necessary?

Marek

avr-gcc-list at http://avr1.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]