Unformatted text preview: instructions (a) ADD 1 2 2 1 ; , , R R R R R R ï€« ï‚¬ (b) ADD A, B, C ; ] [ ] [ ] [ B M A M C M ï€« ï‚¬ Assume that the address of a given instruction is initially stored in the register PC . 3. Give a short sequence of machine instructions for the task â€œAdd the contents of memory location A to those of memory location B and place the results in memory location C". Assume that accessing the memory can only be made through the following Two instructions: LOAD LOC, i R and STORE i R , LOC. The first insruction moves the contents of memory location (LOC) to the general purpose register ( i R ) while the second instruction stores the contents of the general purpose register ( i R ) into the memory location (LOC)....
View Full Document
- Spring '10
- Computer Architecture, Central processing unit, CPU cache, memory location