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.

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?

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 ><

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.