Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. what is .lnk file??

what is .lnk file??

Scheduled Pinned Locked Moved Mobile
questiontutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NewtonOfComputers
    wrote on last edited by
    #1

    when i am writing few assembly language programs, after assembling i found .lnk and .obj files. what the .lnk files hold and how they r built?. why there is change in opcodes of the instructions?. Example for Mov 70h,#29h the opcode there is 757029 but for mov r1,#20h. it is giving some other opcodes. why there is a change in this?. ComputerNewton

    L 1 Reply Last reply
    0
    • N NewtonOfComputers

      when i am writing few assembly language programs, after assembling i found .lnk and .obj files. what the .lnk files hold and how they r built?. why there is change in opcodes of the instructions?. Example for Mov 70h,#29h the opcode there is 757029 but for mov r1,#20h. it is giving some other opcodes. why there is a change in this?. ComputerNewton

      L Offline
      L Offline
      LittleYellowBird
      wrote on last edited by
      #2

      Hi, I am more of an embedded programmer so I this may not be correct for your situation but this is my experience from the past. '.lnk' files are normally link files, they tell the linker how to join (link) different modules of code, in the old days programmers wrote their own link files, but it is often done by the programming environment now. '.obj' files are object files, they are intermediate files generated from the aseembler prior to being linked together to form the final program. Op Code From your example 'Mov 70h,#29h', 75 will be the 'op code' for the instruction 'Mov', the source & destination are added to the end of it ie 75,70,29 = 757029 So the result for 'mov r1,#20h' will be 75,??,20 where ?? = the address (index) of r1. Hope this helps a bit. Ali

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups