Saturday, March 21, 2015

Program To Print Table of Any Number :: Assembly Language

Read Also:  

include irvine32.inc

.data
result dword ?
num dword ?
msg byte "Enter number You Want To Print Table",0,13h,10h
msg1 byte " * ",0
msg2 byte " = ",0

.code
main proc
call clrscr
call crlf
mov edx,offset msg
call writestring
call crlf
call readint
mov num,eax
mov ecx,10
mov ebx,1
L1:
mov eax,num
call writeint
mul ebx
mov edx,offset msg1
call writestring
mov result,eax
mov eax,ebx
call writeint
mov edx,offset msg2
call writestring
mov eax,result
call writeint
call crlf
inc ebx
loop L1
exit
main endp
end main




Share this

0 Comment to "Program To Print Table of Any Number :: Assembly Language"