ECE 198 Lecture Notes - Flowchart

56 views4 pages

Document Summary

Ece 198 worksheet 13: programming the lc-3: multiply. In lecture, we showed you how to implement a constrained version of a multiplication algorithm on the lc-3. This constrained algorithm is shown to the right for your reference. In this discussion worksheet, you will implement an unconstrained version of the multiplication algorithm. This flow chart should not have iterative or conditional constructs and should be written in clear english to help you think through the general strategy you will use to approach the problem. Be sure to think about how you will handle the cases when b is negative. Spending more time on this step will make the other steps go faster. Initialize: get values of a and b from memory clear value of pstartp = p + ab = b - 1b > 0store p in memorystoptruefalse2) decompose your high level flow chart into sequential, iterative, and conditional constructs.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents