This preview shows pages 1–2. Sign up to view the full content.
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
This note was uploaded on 11/12/2010 for the course KTMT KTMT04 taught by Professor Son during the Spring '10 term at Dallas Colleges.
- Spring '10