.model small
.stack 0100h
.data
NEYM DW 08h, ?, 08h DUP("$")
Q DB "Input First Number: $"
Q1 DB 0AH,0DH, "Input Second Number: $"
P DB 0AH,0DH, "Product: $"
result db 13, 10, 'input number','$'
;Variables
.code
mov ax, @data
mov ds, ax
mov ah, 09h
mov dx, offset Q
int 21h
mov ah, 0Ah
MOV AL, AH
mov dx, OFFSET NEYM
int 21h
mov ah, 09h
mov dx, offset Q1
int 21h
mov ah, 0Ah
MOV BL, AH
mov dx, OFFSET NEYM
int 21h
mov q,al
mov q1,bl
mul q,q1
mov ah, 09h
lea dx, result
int 21h
mov ax, 4c00h
int 21h
end
gil.nickson 0 Newbie Poster
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.