Question
Problem 1: Write a program in (32 bit Assembly,intel x86 Architecture,Assembler:MASAM) that takes two arbitrarily large unsigned integers (up to 100 digits) from console, multiplies
Problem 1: Write a program in (32 bit Assembly,intel x86 Architecture,Assembler:MASAM) that takes two arbitrarily large unsigned integers (up to 100 digits) from console, multiplies them, and display their product in well formatted way on console. The general idea to do this is to: 1) Read each character and convert them to decimal (look up the ASCII value for numbers 0 - 9). 2) Multiple the two number together. Since the numbers are larger than normally, you have to understand how multiplication works with carries. If you multiply a number and there is a carry, you must add the carry to the next place. If you have the numbers 580 * 12, you will have to multiple 580 * 2. Since 8 * 2 = 16 which is greater than 9, you have to ripple carry the 1 to the next digit place. Same thing with 5 * 2. Afterward, you have to multiply 580 * 1 and add that to the previous result. Do some long hand multiplications to for some reference on to how this works. 3) Convert the result to ASCII again, but put commas between every 3 characters. (e.g. 8, 444, 490
(intel x86 Architecture,32 bit Assembly,MASAM)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started