You are on page 1of 1

Stack pointer Stack segment

A register inside the SFR A group of registers


Use to point to the stack start Holds the stack
Consist of SPH and SPL that hold Consist of many registers which is
the address of the stack beginning determined by the programmer that
is used by him to store values

OCF TOF
Output compare flag Timer overflow flag
Used with CTC Mode Used with Normal mode
Indicate that compare has Indicate that over flow has
occurred occurred

SBRS SBIS
Skip if bit Register is set Skip if bit I\O is set
Used to test a bit in the GPR Used to test a bit in the SFR

Q\steps to response to a subroutine ?


Ans\\
 Take the locating of the next instruction from the program
counter and send it to the stack
 Fetch new instruction for the subroutine
 Return to the address that was stored in the stack

You might also like