0

Can someone help me on how can i make a assembly program that can multiply?
I'm going to make a program that convert a currency to another currency so it will involve a user input. I browsed through the net on how to make a program that do multiplication but unfortunately its hard to find a source code using the TASM compiler.
Please help me about this, some working example codes for multiplication will do >.<.
Im using TASM.

2
Contributors
2
Replies
4
Views
5 Years
Discussion Span
Last Post by inagumi
0

no reason to restrict yourself to looking for TASM source code, it's all the same minus some syntax differences. in any case you must have not looked very hard, just doing a google search for "tasm multiplication" turns up tons of relevant results.

what have you tried so far in your code?

0

title a.asm
.model small
.stack 0100h
.data
a db 30 dup(0)
b db 30 dup(0)
text db 10,13, ("Enter a number: $")
text2 db 10,13, ("enter a number: $")
res db 0
text3 db 10,13, ("Result is: $")

.code

mov ax, @data
mov ds, ax

mov ax, 0003h
int 10h

mov ah, 09h
lea dx, text
int 21h

mov ah, 0ah
lea dx, a
int 21h

mov ah, 09h
lea dx, text2
int 21h

mov ah, 0ah
lea dx, b
int 21h

(STUCK U.U)


mov ax, 4c00h
int 21h

end

There, i dont know how can i multiply those inputs and show the results. You know the restrictions in assembly in such operations ><

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.