Dear experts,
I'm trying to learn assembly language based on available resources online, but I'm stumped in multiplication. I've tried to look for other tutorials on the internet, but I still couldn't get it. This program below (keeps displaying a nasty error on WinXP). Any help would be appreciated.
Thanks in advance!
------------
.model small
.stack
.data
lf equ 0ah
cr equ 0dh
prompt db cr,lf,"Enter a number: ","$"
product db cr,lf,"The product is: ","$"
.code
main proc near
mov ax,@data
mov ds,ax
mov dx,offset prompt
mov ah,09h
int 21h
mov ah,01h
int 21h
mov bx,10d
mul bx
mov dx,offset prompt
mov ah,09h
int 21h
mov bl,al
mov ah,02h
int 21h
mov ax,4ch
int 21h
main endp
end main
Start Free Trial