This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: associated with the subroutine. The start of the subroutine is shown below. Complete the subroutine, using whatever method you like to multiply-by-ten. Include comments to explain what you’re doing. The last instruction of the subroutine should be a branch that transfers control back to the calling program. Remember that the product should be in the accumulator when your subroutine returns. address instruction comment 2000 0000 -- return address 2001 5010 M=ACC -- save argument value CSE 260 – Digital Computers: Organization and Logical Design Homework 8 Jon Turner 10/28/2010 - 2 - Write a code fragment that uses the subroutine to compute one hundred times M, where M is the value stored in memory location 1020. Store the result of the computation in M . Start your program at memory location 1000. address instruction comment 1000...
View Full Document
- Spring '10
- Subroutine, Control flow, memory location, Jon Turner