Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
230 views
in Technique[技术] by (71.8m points)

assembly - What exactly this line means?

The location is the address of the memory word where the instruction is stored. It is important to differentiate it from the address part of the instruction itself

I am reading Morris Mano's book on computer system architecture and I am getting more and more confused whenever the word MEMORY comes up and now here I don't exactly understand the difference being talked about here in statement 2.

question from:https://stackoverflow.com/questions/65858414/what-exactly-this-line-means

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Let's suppose our hypothetical CPU has an instruction to load a register from an address in memory:

LOAD R<n>,<address>

Now let's suppose that your program contains an example of such an instruction, at address 0x1000, that loads register R3 from address 0x5678:

00001000   LOAD R3,0x5678

Then according to your quote, the location is 0x1000, and the address part of the instruction is 0x5678.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...