Question: IN ASSEMBLY LANGUAGE Programming Problem #2: Multiply: (8-bit) byte x (8-bit) byte (function) (Similar to #5 on Page 239) Write a function to multiply two

IN ASSEMBLY LANGUAGEIN ASSEMBLY LANGUAGE Programming Problem #2: Multiply: (8-bit) byte x (8-bit) byte

Programming Problem #2: Multiply: (8-bit) byte x (8-bit) byte (function) (Similar to #5 on Page 239) Write a function to multiply two bytes (8-bits each). The function arguments are to be passed on the stack. The return value, a (2- byte) word, is to be left in registers R25:R24. The multiplication algorithm is repeated addition: word multiply (byte factor, byte multiplier) word answer = 0; while (factor- > 0) answer += multiplier; return answer; This function *must* use the macro written in problem #1 (above). Observe that the documentation of this subroutine really should include the algorithm's pseudo-code (above)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!