can any one help me with this:
to write a masm program to calculate and display multiplication table of any number like 5 ?
thank you

i have reached up to this

.MODEL SMALL
.STACK 100H
.DATA 
NUM DB 5
MULTI DW ?
.CODE
MAIN PROC FAR
MOV AX,@DATA
MOV DS,AX
MOV AH,06H
MOV BH,07
MOV CX,0000H
MOV DX,18F4H
INT 10H
MOV CX,000AH
MOV BX,OFFSET NUM
MOV AX,[BX]
AGAIN:MUL CX
DEC CX
JNZ AGAIN
MOV AH,02H
MOV DX,OFFSET MULTI
INT 21H
MOV AH,4CH
INT 21H
MAIN ENDP
END MAIN

but when i assemble,link and finally debug it
some sort of garbage or you can say characters are displayed on screen.
so any one can help me ??
thank you

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.