Sun, 23 Oct 2011, 20:57
A student writes with a question about getting information from locations
far away from his code:
> Hi, Dr. Patt,
> If you are reading this question after Sunday, feel free
> to ignore it.
You mean after the deadline, you do not want to know how to do this?
> I was wondering how I can load a value and/or address from a memory location
> that is far away from the address of the instruction? For example, in this
> lab we are loading the value from x3200 to compare it with other values. The
> LD instruction requires a label, but I don't know how to label x3200. Same
> question goes for storing.
Why do you need to label x3200. Recall the problem we worked in class.
Same concept:
LD R3, PTR
...
PTR .FILL x3200
Got it?
> Thanks for your help.
> <<name withheld to protect the student who loses interset tonight at 11:59pm>>
Your welcome.
Yale Patt