LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Advertise
  • Mirrors
  • Logos
  • Contact us
  • Find Resources
  • Job Opportunity
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Openrisc > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: Ben A. Abderazek<ben@s...>
    Date: Fri May 14 11:56:06 CEST 2004
    Subject: [openrisc] What information should be pushed to the Stack for Call Instruction?
    Top
    Dear Helper,

    When "call" instruction is executed (or earlier decoded), I know that the return address should be pushed to a stack (stack-register) if more that a call will be needed.
    My question is do I also have to push the condition code register (N, Z,V, and C) and then pop them again with the return address when return from call (rfc) instruction is executed or I just push the return address (the PC of the call + 2 for 16-bit processor).
    I am thinking to push only the return address to the stack-register during call and I push the "ra" and CCR flags for interrupt only.

    Many thanks,
    /Ben
    UEC, IS
    -------------- next part --------------
    An HTML attachment was scrubbed...
    URL: attachment.htm

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.