Assembly get actual variable address?
I am developing an OS in x86 assembly (using NASM) and ran into an annoying problem that I can not seem to solve. Ok so lets say I loaded my program into the address 0xFF (I did not load it there , just an example) and I had a variable that was at address 0xC in my executable. Now I used the org instruction and moved the variable into eax. Now the value of the variable will be 0xC instead of 0xFF + 0xC. Is there any way to get the actual value in memory or do I need to add the offset everytime?
链接地址: http://www.djcxy.com/p/72420.html上一篇: 如何在NASM中推送64位整数?
下一篇: 大会得到实际的变量地址?