head 1.2;
access;
symbols
noReleaseTag:1.1.1.1 Doru:1.1.1;
locks; strict;
comment @# @;
1.2
date 2003.02.10.03.56.04; author doru; state dead;
branches;
next 1.1;
1.1
date 2003.01.01.02.33.12; author doru; state Exp;
branches
1.1.1.1;
next ;
1.1.1.1
date 2003.01.01.02.33.12; author doru; state Exp;
branches;
next ;
desc
@@
1.2
log
@Removing pAVR from CVS repository. Its directory structure will be changed and then uploaded back.
@
text
@
There are 4 call instructions, analogue to the jump instructions:
RCALL (relative call)
The call address is obtained by adding to the current Program Counter a 12 bit signed offset obtained from the instruction word.
ICALL (indirect call)
The call address is read from the Z pointer register.
The destination resides in the lower 64 Kwords of Program Memory.
EICALL (extended indirect call)
The call address is read from EIND:Z (higher 6 bis from EIND register in IOF, and lower 16 bits from Z pointer in RF).
This call accesses the whole 22 bit addressing space of the Program Memory.
CALL (far call)
The call address is read from two consecutive instruction words.
This call accesses the whole 22 bit addressing space of the Program Memory.
Apart from these, there is another kind of call, automatically inserted into the pipeline when an interrupt is processed. In addition to the regular calls, the implicit interrupt call also clears the general interrupt flag (flag I in the Status Register). This way, nested interrupts are disabled by default. However, they can be enabled explicitely. This behavior is questionable, but is implemented for the sake of AVR compatibility.
After an interrupt generates an implicit call, further interrupts are disabled for 4 clocks. This way, at least one instruction will be executed fron the called subroutine. Only after that, another interrupt can change the instruction flow.
All calls take 4 clocks.
Call state machine
Generated on Tue Dec 31 20:26:31 2002 for Pipelined AVR microcontroller by
1.2.16
@
1.1
log
@Initial revision
@
text
@@
1.1.1.1
log
@Importing pavr package for the first time...
@
text
@@