Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

i am wondering if anyone can help me with my machine problem

Status
Not open for further replies.

zyirex1985

Newbie level 3
Newbie level 3
Joined
Jan 10, 2006
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,304
it about multiplyng two 5-digit numbers and will output 10 digit product using MASM or any other similar assembler.
less than 5 digit inputs shall be handled carefully so that no wrong results will come up.
Machine Problem 2
5-Digit Decimal Multiplication

The program is given two decimal numbers as input. The program should be able to multiply the two numbers and output the product.

Inputs:
The program should allow the user to enter at most 5 decimal digits for both the first and second operands. For simplicity, assume that the user will always enter only the digits 0-9 and will not enter more than 5 digits.

Procedures:

ASCII – BCD Conversion
This procedure converts the input numbers in ASCII code to unpacked decimal numbers
Multiplication
This procedure will multiply the two unpacked decimal numbers. The parameter passing should be as follows:
Address of unpacked operand 1 in SI
Address of unpacked operand 2 in BX
Address of product in DI
BCD – ASCII Conversion
This procedure converts the input numbers in ACII code to unpacked decimal numbers


Output:

The program should output the product (at most 11 decimal digits)

thnx in advance
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top