ECT 330 All Assignments

Published on July 2017 | Categories: Education | Downloads: 40 | Comments: 0 | Views: 466
Download PDF   Embed   Report

ECT 330 Week 3 Homework Click Below Link To Purchase www.foxtutor.com/product/ect-330-week-3-homework 1. Write a program to clear Register B, and then add the number three to B seven times. Use the BNE instruction with DECA 2. Write a program to clear Register A, add five to Register A 10 times, and place the result in RAM Location $2000. Use a RAM location for holding the counter. 3. What is the size of each instruction? I. LDAA #50 II. BEQ there III. STAA $2000 IV. DECB V. LDAB 0, X 4. Write the sequence of instructions to save Registers A, Y, and X in the Stack with the given order. Write the sequence of instructions to retrieve those values back. Saving A, Y, and X in Stack: 1 __________ 2 __________ 3 __________ Retrieving values back: 1 __________ 2 __________ 3 __________ 5. Show code for a nested loop to perform an action 1,000 times

Comments

Content

ECT 330 Week 3 Homework Click Below Link To Purchase www.foxtutor.com/product/ect-330-week-3-homework 1. Write a program to clear Register B, and then add the number three to B seven times. Use the BNE instruction with DECA 2. Write a program to clear Register A, add five to Register A 10 times, and place the result in RAM Location $2000. Use a RAM location for holding the counter. 3. What is the size of each instruction? I. LDAA #50 II. BEQ there III. STAA $2000 IV. DECB V. LDAB 0, X 4. Write the sequence of instructions to save Registers A, Y, and X in the Stack with the given order. Write the sequence of instructions to retrieve those values back. Saving A, Y, and X in Stack: 1 __________ 2 __________ 3 __________ Retrieving values back: 1 __________ 2 __________ 3 __________ 5. Show code for a nested loop to perform an action 1,000 times

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close