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: Balaji V. Iyer<bviyer@n...>
    Date: Tue May 31 19:47:37 CEST 2005
    Subject: [openrisc] Difference Between Jump(l.j) and Jump and Link (l.jal)
    Top
    Hi Everyone,
    What exactly is the difference between Jump and link and the Jump
    instruction? Don't they both do the same thing (according to the
    OpenRISC architecture manual where it says "32 Bit Implementation").

    For Example, let's say we have

    100C: l.j 103233
    1010: addi r3,r0,0x2
    1014: ori r3,r11,0x0
    and

    100C: l.jal 103233
    1010: addi r3,r0,0x2
    1014: ori r3,r11,0x0


    both of then should write 2 into R3 before jumping to 103233 and the R9
    for both the jumps will be set to 1014.. am I correct?

    Any Help is appreciated.

    Thanks,

    Balaji V. Iyer.

    Follow upAuthor
    [openrisc] Difference Between Jump(l.j) and Jump and Link (l.jal)Matjaz Breskvar

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