Numeric addresses in assembly language -


Why would not it be good to use a numeric address when using the variable while writing the instruction? I am studying assembly language and I have a problem with this question.

Using a numerical address Relationship to specific locations in memory. Generally, applications can be loaded anywhere in the memory, so this will not work if you have been loaded at some other place compared to the time it is being programmed. Even if you are doing operating system kernel programming that resides in low memory, then a new version of the kernel can have data or code bigger or smaller under your address, in which case you have all your numerical addresses Has to change. / P>

Most processors are fasting with indirect addresses with direct addresses these days, so the use of numerical addresses does not help in any way.


Comments