0
.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
3
Contributors
2
Replies
33
Views
3 Years
Discussion Span
Last Post by kashif afridi
1

Oh jolly! A riddle! Not only do we get to guide you through fixing the code, but we also get to make wild stabs and guesses at what exactly the code does, and which errors is is producing. My Saturday nights don't get any better than this.

In all seriousness, you're going to have to provide us with a bit more background info. What's this program supposed to do? What's it not doing that it should? I understand that this is an international forum and there may be a language barrier, but please try to explain as best you can.

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.