This preview shows page 1. Sign up to view the full content.
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