what is .lnk file??
-
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
-
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
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