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
This note was uploaded on 05/01/2011 for the course ISC ******* taught by Professor **** during the Spring '10 term at Kuwait University.
- Spring '10