Microprocessors And Microcontrollers
Friday, 4 November 2011
program to find LCM
mov bx,[2002h]
mov cx,[2000h]
mov di,[2002h]
dec di
l1: inc di
mov ax,di
div cx
cmp dx,00h
jz l5
jnz l1
l5:mov ax,di
div bx
cmp dx,00h
jz l6
jnz l1
l6:mov [4000h],di
hlt
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment