<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-8625135172473312925</id><updated>2011-12-18T21:59:24.960-08:00</updated><category term='parity checker'/><category term='8086 MASM PROGRAM'/><category term='LEAP YEAR'/><category term='display in reverse order'/><category term='TEMPERATURE CONVERSION'/><title type='text'>8086 MICROSOFT MACRO ASSEMBLER(MASM) PROGRAMS</title><subtitle type='html'>8086 MASM IMPORTANT QUESTIONS AND PROGRAMS FOR ENGINEERS AND STUDENTS</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://8086masm.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8625135172473312925/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://8086masm.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Quizzing Champion</name><uri>https://profiles.google.com/105435936055400367769</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-2Mfq0Iw1-JY/AAAAAAAAAAI/AAAAAAAAAAA/JWBJ5T9qx-c/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8625135172473312925.post-4965099663278116349</id><published>2010-01-21T20:06:00.000-08:00</published><updated>2010-01-21T20:07:29.384-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='8086 MASM PROGRAM'/><title type='text'>8086 or MASM PROGRAM to input 9 digits and display the second biggest number that can be formed using those digits</title><content type='html'>assume ds:data1,cs:code1,ss:stack1&lt;br /&gt;stack1 segment&lt;br /&gt;store1 db 10,0,10 dup('$')&lt;br /&gt;stack1 ends&lt;br /&gt;data1 segment&lt;br /&gt;msg db 0ah,0dh,'enter the 9 digit number$'&lt;br /&gt;number db 12,0,12 dup('$')&lt;br /&gt;msg1 db 0ah,0dh,'the rearranged order is=$'&lt;br /&gt;data1 ends&lt;br /&gt;stack1 segment&lt;br /&gt;store db 10,0,10 dup('$')&lt;br /&gt;stack1 ends&lt;br /&gt;code1 segment&lt;br /&gt;start;mov ax,seg data1&lt;br /&gt;mov ds,ax&lt;br /&gt;lea dx,msg&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;lea dx,number&lt;br /&gt;mov ah,0ah&lt;br /&gt;int 21h&lt;br /&gt;mov cx,0008h&lt;br /&gt;pass:push cx&lt;br /&gt;mov cx,0008h&lt;br /&gt;lea dx,number+2&lt;br /&gt;mov si,dx&lt;br /&gt;again:mov al,[si]&lt;br /&gt;cmp al,[si+1]&lt;br /&gt;jnc down&lt;br /&gt;xchg al,[si+1]&lt;br /&gt;xchg al,[si]&lt;br /&gt;down:&lt;br /&gt;inc si&lt;br /&gt;loop again&lt;br /&gt;pop cx&lt;br /&gt;loop pass&lt;br /&gt;mov al,[si]&lt;br /&gt;xchg al,[si-1]&lt;br /&gt;xchg al,[si]&lt;br /&gt;lea dx,msg1&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;lea dx,number+2&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;mov ah,4ch&lt;br /&gt;int 21h&lt;br /&gt;code1 ends&lt;br /&gt;end start&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8625135172473312925-4965099663278116349?l=8086masm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8086masm.blogspot.com/feeds/4965099663278116349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8086masm.blogspot.com/2010/01/8086-or-masm-program-to-input-9-digits.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8625135172473312925/posts/default/4965099663278116349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8625135172473312925/posts/default/4965099663278116349'/><link rel='alternate' type='text/html' href='http://8086masm.blogspot.com/2010/01/8086-or-masm-program-to-input-9-digits.html' title='8086 or MASM PROGRAM to input 9 digits and display the second biggest number that can be formed using those digits'/><author><name>Quizzing Champion</name><uri>https://profiles.google.com/105435936055400367769</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-2Mfq0Iw1-JY/AAAAAAAAAAI/AAAAAAAAAAA/JWBJ5T9qx-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8625135172473312925.post-5428014206901525370</id><published>2010-01-21T20:04:00.000-08:00</published><updated>2010-01-21T20:06:09.851-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='8086 MASM PROGRAM'/><title type='text'>8086 or MASM PROGRAM to display the multiplication table (first 10 values) for a number N(&lt;10d)</title><content type='html'>assume ds:data1,cs:code1&lt;br /&gt;data1 segment&lt;br /&gt;msg db 0ah,0dh,'enter the number$'&lt;br /&gt;number db 2,0,2 dup('$')&lt;br /&gt;decimal db '0','1','2','3','4','5','6','7','8','9'&lt;br /&gt;ans db 0ah,'0','*','0','=','0','0','$'&lt;br /&gt;data1 ends&lt;br /&gt;code1 segment&lt;br /&gt;start;mov ax,seg data1&lt;br /&gt;mov ds,ax&lt;br /&gt;lea dx,msg&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;mov cx,000ah&lt;br /&gt;mov dl,0ah&lt;br /&gt;mov ah,02h&lt;br /&gt;int 21h&lt;br /&gt;lea dx,number&lt;br /&gt;mov ah,0ah&lt;br /&gt;int 21h&lt;br /&gt;lea dx,number&lt;br /&gt;inc dx&lt;br /&gt;inc dx&lt;br /&gt;mov di,dx&lt;br /&gt;mov bl,[di]&lt;br /&gt;and bl,0fh&lt;br /&gt;lea dx,ans&lt;br /&gt;inc dx&lt;br /&gt;mov si,dx&lt;br /&gt;mov dl,[di]&lt;br /&gt;mov [si],dl&lt;br /&gt;lea dx,ans&lt;br /&gt;inc dx&lt;br /&gt;mov di,dx&lt;br /&gt;lea dx,decimal&lt;br /&gt;mov si,dx&lt;br /&gt;again:lea dx,ans&lt;br /&gt;inc dx&lt;br /&gt;mov di,dx&lt;br /&gt;mov al,[si]&lt;br /&gt;inc di&lt;br /&gt;inc di&lt;br /&gt;mov [di],al&lt;br /&gt;mov bh,[si]&lt;br /&gt;mov ax,0000h&lt;br /&gt;and bh,0fh&lt;br /&gt;mov al,bh&lt;br /&gt;mul bl&lt;br /&gt;aam&lt;br /&gt;add ax,03030h&lt;br /&gt;inc di&lt;br /&gt;inc di&lt;br /&gt;mov [di],ah&lt;br /&gt;inc di&lt;br /&gt;mov [di],al&lt;br /&gt;lea dx,ans&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;inc si&lt;br /&gt;loop again&lt;br /&gt;mov ah,4ch&lt;br /&gt;int 21h&lt;br /&gt;code1 ends&lt;br /&gt;end start&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8625135172473312925-5428014206901525370?l=8086masm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8086masm.blogspot.com/feeds/5428014206901525370/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8086masm.blogspot.com/2010/01/8086-or-masm-program-to-display.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8625135172473312925/posts/default/5428014206901525370'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8625135172473312925/posts/default/5428014206901525370'/><link rel='alternate' type='text/html' href='http://8086masm.blogspot.com/2010/01/8086-or-masm-program-to-display.html' title='8086 or MASM PROGRAM to display the multiplication table (first 10 values) for a number N(&lt;10d)'/><author><name>Quizzing Champion</name><uri>https://profiles.google.com/105435936055400367769</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-2Mfq0Iw1-JY/AAAAAAAAAAI/AAAAAAAAAAA/JWBJ5T9qx-c/s512-c/photo.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8625135172473312925.post-8782052071413942140</id><published>2010-01-21T20:02:00.000-08:00</published><updated>2010-01-21T20:03:58.802-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='8086 MASM PROGRAM'/><title type='text'>8086 OR MASM PROGRAM TO CONVERT THE Given temperature in Centigrade(&lt;100°C) to Fahrenheit and Kelvin and display it (i/p and o/p as Decimal numbers)</title><content type='html'>&lt;span style="font-family:times new roman;font-size:130%;"&gt;assume ds:data1,cs:code1&lt;br /&gt;data1 segment&lt;br /&gt;msg db 0ah,0dh,'enter the temperature in degree celsius',0ah,'$'&lt;br /&gt;msg1 db 0ah,0dh,'error! enter a temperature less than 99 degree C$'&lt;br /&gt;msg2 db 0ah,0dh,'the temperature in kelvin scale is=$'&lt;br /&gt;msg3 db 0ah,0dh,'the temperature in farenheit scale is approximately=$'&lt;br /&gt;msg4 db 0ah,0dh,'the temperature in celsius scale is=$'&lt;br /&gt;temp db 6,0,6 dup('$')&lt;br /&gt;result db 20,0,20 dup('$')&lt;br /&gt;&lt;br /&gt;data1 ends&lt;br /&gt;code1 seg&lt;br /&gt;start:mov ax,seg data1&lt;br /&gt;mov ds,ax&lt;br /&gt;&lt;br /&gt;lea dx,msg&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;mov ch,02h&lt;br /&gt;&lt;br /&gt;ask:&lt;br /&gt;lea dx,temp&lt;br /&gt;mov ah,0ah&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;lea dx,msg4&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;lea dx,temp+2&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;do:&lt;br /&gt;lea bx,temp+1&lt;br /&gt;mov cl,[bx]&lt;br /&gt;inc bx&lt;br /&gt;mov ah,[bx]&lt;br /&gt;dec cl&lt;br /&gt;jz down&lt;br /&gt;mov al,[bx+1]&lt;br /&gt;dec cl&lt;br /&gt;jz down1&lt;br /&gt;lea dx,msg1&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;jmp ask&lt;br /&gt;&lt;br /&gt;down:&lt;br /&gt;mov al,ah&lt;br /&gt;mov ah,00h&lt;br /&gt;down1:&lt;br /&gt;and ax,0f0fh&lt;br /&gt;aad&lt;br /&gt;dec ch&lt;br /&gt;jz second&lt;br /&gt;add ax,0111h;273 addition&lt;br /&gt;call display&lt;br /&gt;lea dx,msg2&lt;br /&gt;call show&lt;br /&gt;jmp do&lt;br /&gt;second:&lt;br /&gt;mov cl,09h&lt;br /&gt;mul cl&lt;br /&gt;mov cl,05h&lt;br /&gt;div cl&lt;br /&gt;mov ah,00h&lt;br /&gt;add al,20h;hex equivalent of 32&lt;br /&gt;call display&lt;br /&gt;lea dx,msg3&lt;br /&gt;call show&lt;br /&gt;jmp over&lt;br /&gt;&lt;br /&gt;display:lea bx,result+4&lt;br /&gt;mov dl,03h&lt;br /&gt;mov cl,0ah&lt;br /&gt;again:&lt;br /&gt;div cl&lt;br /&gt;add ah,30h&lt;br /&gt;mov [bx],ah&lt;br /&gt;dec bx&lt;br /&gt;mov ah,00h&lt;br /&gt;dec dl&lt;br /&gt;jnz again&lt;br /&gt;ret&lt;br /&gt;&lt;br /&gt;show:&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;lea dx,result+2&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;ret&lt;br /&gt;over:&lt;br /&gt;mov ah,4ch&lt;br /&gt;int 21h&lt;br /&gt;code1 ends&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8625135172473312925-8782052071413942140?l=8086masm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8086masm.blogspot.com/feeds/8782052071413942140/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8086masm.blogspot.com/2010/01/8086-or-masm-program-to-convert-given.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8625135172473312925/posts/default/8782052071413942140'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8625135172473312925/posts/default/8782052071413942140'/><link rel='alternate' type='text/html' href='http://8086masm.blogspot.com/2010/01/8086-or-masm-program-to-convert-given.html' title='8086 OR MASM PROGRAM TO CONVERT THE Given temperature in Centigrade(&lt;100°C) to Fahrenheit and Kelvin and display it (i/p and o/p as Decimal numbers)'/><author><name>Quizzing Champion</name><uri>https://profiles.google.com/105435936055400367769</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-2Mfq0Iw1-JY/AAAAAAAAAAI/AAAAAAAAAAA/JWBJ5T9qx-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8625135172473312925.post-6574409497612931267</id><published>2010-01-21T19:58:00.000-08:00</published><updated>2010-01-21T20:01:42.378-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='8086 MASM PROGRAM'/><title type='text'>8086 OR MASM PROGRAM TO Count and display the number of occurrances of (i) vowels (ii) a given word from a given string</title><content type='html'>&lt;span style="font-family:trebuchet ms;font-size:130%;"&gt;assume ds:data1,cs:code1&lt;br /&gt;data1 segment&lt;br /&gt;msg db 0ah,0dh,'enter the word in small letters',0ah,'$'&lt;br /&gt;msg1 db 0ah,0dh,'the number of vowels in the given string is=$'&lt;br /&gt;msg2 db 0ah,0dh,'the number of occurance of the word in the given string is=$'&lt;br /&gt;vowel db 'a','e','i','o','u'&lt;br /&gt;enter db 'is is is$'&lt;br /&gt;get db 20,0,20 dup('$')&lt;br /&gt;data1 ends&lt;br /&gt;code1 segment&lt;br /&gt;start:mov ax,seg data1&lt;br /&gt;mov ds,ax&lt;br /&gt;lea dx,msg1&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;lea bx,enter&lt;br /&gt;mov si,bx&lt;br /&gt;mov bl,00h&lt;br /&gt;check:&lt;br /&gt;lea dx,vowel&lt;br /&gt;mov di,dx&lt;br /&gt;mov dx,0005h&lt;br /&gt;mov al,[si]&lt;br /&gt;repeat1:cmp al,[di]&lt;br /&gt;jz down&lt;br /&gt;inc di&lt;br /&gt;dec dl&lt;br /&gt;jnz repeat1&lt;br /&gt;jmp have&lt;br /&gt;down:inc bl&lt;br /&gt;have:inc si&lt;br /&gt;mov dh,'$'&lt;br /&gt;cmp [si],dh&lt;br /&gt;jnz check&lt;br /&gt;mov dl,bl&lt;br /&gt;add dl,30h&lt;br /&gt;mov ah,02h&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;lea dx,msg&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;lea dx,get&lt;br /&gt;mov ah,0ah&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;lea dx,msg2&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;lea dx,enter&lt;br /&gt;mov si,dx&lt;br /&gt;mov dx,0000h&lt;br /&gt;again:&lt;br /&gt;lea bx,get+1&lt;br /&gt;mov cl,[bx]&lt;br /&gt;inc bx&lt;br /&gt;mov di,bx&lt;br /&gt;again1:&lt;br /&gt;mov al,[si]&lt;br /&gt;cmp al,[di]&lt;br /&gt;jnz under&lt;br /&gt;inc si&lt;br /&gt;inc di&lt;br /&gt;loop again1&lt;br /&gt;mov bl,20h&lt;br /&gt;cmp [si],bl;ASCII OF SPACE&lt;br /&gt;jz found&lt;br /&gt;mov bl,24h&lt;br /&gt;cmp [si],bl;ASCII of $&lt;br /&gt;jz found&lt;br /&gt;under:inc si&lt;br /&gt;mov bl,20h&lt;br /&gt;cmp [si],bl&lt;br /&gt;jz do&lt;br /&gt;mov bl,24h&lt;br /&gt;cmp [si],bl&lt;br /&gt;jz over&lt;br /&gt;jmp under&lt;br /&gt;found:&lt;br /&gt;inc dl&lt;br /&gt;do:inc si&lt;br /&gt;mov bl,24h&lt;br /&gt;cmp [si],bl&lt;br /&gt;jz over&lt;br /&gt;jmp again&lt;br /&gt;over:add dl,30h&lt;br /&gt;mov ah,02h&lt;br /&gt;int 21h&lt;br /&gt;mov ah,4ch&lt;br /&gt;int 21h&lt;br /&gt;code1 ends&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8625135172473312925-6574409497612931267?l=8086masm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8086masm.blogspot.com/feeds/6574409497612931267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8086masm.blogspot.com/2010/01/8086-or-masm-program-to-count-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8625135172473312925/posts/default/6574409497612931267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8625135172473312925/posts/default/6574409497612931267'/><link rel='alternate' type='text/html' href='http://8086masm.blogspot.com/2010/01/8086-or-masm-program-to-count-and.html' title='8086 OR MASM PROGRAM TO Count and display the number of occurrances of (i) vowels (ii) a given word from a given string'/><author><name>Quizzing Champion</name><uri>https://profiles.google.com/105435936055400367769</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-2Mfq0Iw1-JY/AAAAAAAAAAI/AAAAAAAAAAA/JWBJ5T9qx-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8625135172473312925.post-2808506194255428824</id><published>2010-01-21T19:54:00.000-08:00</published><updated>2010-01-21T19:58:26.815-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='8086 MASM PROGRAM'/><title type='text'>8086/MASM PROGRAM TO CHECK WHETHER THE MOBILE NUMBER ENTERED THROUGH KEYBOARD IS DIVISIBLE BY NINE</title><content type='html'>&lt;span style="font-size:130%;color:#006600;"&gt;assume ds:data,cs:code&lt;br /&gt;data segment&lt;br /&gt;msg db 0ah,0dh,'enter the mobile number$'&lt;br /&gt;number db 20,0,20 dup('$')&lt;br /&gt;yes db 0ah,0dh,'YES$'&lt;br /&gt;no db 0ah,0dh,'NO$'&lt;br /&gt;data ends&lt;br /&gt;code segment&lt;br /&gt;start:mov ax,seg data&lt;br /&gt;mov ds,ax&lt;br /&gt;&lt;br /&gt;lea dx,msg&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;lea dx,number&lt;br /&gt;mov ah,0ah&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;lea dx,number&lt;br /&gt;mov sl,dx&lt;br /&gt;inc si&lt;br /&gt;inc si&lt;br /&gt;mov cx,000ah&lt;br /&gt;&lt;br /&gt;again:mov al,[si]&lt;br /&gt;and al,0fh&lt;br /&gt;mov [si],al&lt;br /&gt;inc si&lt;br /&gt;loop again&lt;br /&gt;&lt;br /&gt;lea dx,number&lt;br /&gt;mov si,dx&lt;br /&gt;inc si&lt;br /&gt;inc si&lt;br /&gt;mov cx,0009h&lt;br /&gt;mov ax,0000h&lt;br /&gt;mov ai,[si]&lt;br /&gt;adding:add al,[si+1]&lt;br /&gt;inc si&lt;br /&gt;loop adding&lt;br /&gt;mov bl,03h&lt;br /&gt;div bl&lt;br /&gt;and ah,0ffh&lt;br /&gt;jz yess&lt;br /&gt;&lt;br /&gt;lea dx,no&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;jmp down&lt;br /&gt;&lt;br /&gt;yess:lea dx,yes&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;down: mov ah,4ch&lt;br /&gt;int 21h&lt;br /&gt;code ends&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8625135172473312925-2808506194255428824?l=8086masm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8086masm.blogspot.com/feeds/2808506194255428824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8086masm.blogspot.com/2010/01/8086masm-program-to-check-whether.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8625135172473312925/posts/default/2808506194255428824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8625135172473312925/posts/default/2808506194255428824'/><link rel='alternate' type='text/html' href='http://8086masm.blogspot.com/2010/01/8086masm-program-to-check-whether.html' title='8086/MASM PROGRAM TO CHECK WHETHER THE MOBILE NUMBER ENTERED THROUGH KEYBOARD IS DIVISIBLE BY NINE'/><author><name>Quizzing Champion</name><uri>https://profiles.google.com/105435936055400367769</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-2Mfq0Iw1-JY/AAAAAAAAAAI/AAAAAAAAAAA/JWBJ5T9qx-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8625135172473312925.post-2937128045325987608</id><published>2009-12-20T03:17:00.000-08:00</published><updated>2009-12-20T03:22:26.091-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='TEMPERATURE CONVERSION'/><category scheme='http://www.blogger.com/atom/ns#' term='8086 MASM PROGRAM'/><title type='text'>8086 PROGRAM TO CONVERT THE TEMPERATURE IN DEGREE CELCIUS TO FAHRENHEIT AND KELVIN SCALE</title><content type='html'>&lt;span style="font-family:trebuchet ms;font-size:130%;"&gt;;Q.Given a temperature in Centigrade(&lt;100°C), WAP to convert it to Fahrenheit and Kelvin and display it (i/p and o/p as Decimal numbers)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;"&gt;assume ds:data1,cs:code1&lt;br /&gt;data1 segment&lt;br /&gt;msg db 0ah,0dh,'enter the temperature in degree celsius',0ah,'$'&lt;br /&gt;msg1 db 0ah,0dh,'error! enter a temperature less than 99degree C$'&lt;br /&gt;msg2 db 0ah,0dh,'the temperature in kelvin scale is=$'&lt;br /&gt;msg3 db 0ah,0dh,'the temperature in farenheit scale is approximately=$'&lt;br /&gt;msg4 db 0ah,0dh,'the temperature in celsius scale is=$'&lt;br /&gt;temp db 6,0,6 dup('$')&lt;br /&gt;result db 20,0,20 dup('$')&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;data1 ends&lt;br /&gt;&lt;br /&gt;code1 segment&lt;br /&gt;start:mov ax,seg data1&lt;br /&gt;mov ds,ax&lt;br /&gt;&lt;br /&gt;lea dx,msg&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;mov ch,02h&lt;br /&gt;&lt;br /&gt;ask:&lt;br /&gt;lea dx,temp&lt;br /&gt;mov ah,0ah&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;lea dx,msg4&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;lea dx,temp+2&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;do:&lt;br /&gt;lea bx,temp+1&lt;br /&gt;mov cl,[bx]&lt;br /&gt;inc bx&lt;br /&gt;mov ah,[bx]&lt;br /&gt;dec cl&lt;br /&gt;jz down&lt;br /&gt;mov al,[bx+1]&lt;br /&gt;dec cl&lt;br /&gt;jz down1&lt;br /&gt;lea dx,msg1&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;jmp ask&lt;br /&gt;&lt;br /&gt;down:&lt;br /&gt;mov al,ah&lt;br /&gt;mov ah,00h&lt;br /&gt;down1:&lt;br /&gt;and ax,0f0fh&lt;br /&gt;aad&lt;br /&gt;dec ch&lt;br /&gt;jz second&lt;br /&gt;add ax,0111h;273 addition&lt;br /&gt;call display&lt;br /&gt;lea dx,msg2&lt;br /&gt;call show&lt;br /&gt;jmp do&lt;br /&gt;second:&lt;br /&gt;mov cl,09h&lt;br /&gt;mul cl&lt;br /&gt;mov cl,05h&lt;br /&gt;div cl&lt;br /&gt;mov ah,00h&lt;br /&gt;add al,20h;hex equivalent of 32&lt;br /&gt;call display&lt;br /&gt;lea dx,msg3&lt;br /&gt;call show&lt;br /&gt;jmp over&lt;br /&gt;&lt;br /&gt;display:lea bx,result+4&lt;br /&gt;mov dl,03h&lt;br /&gt;mov cl,0ah&lt;br /&gt;again:&lt;br /&gt;div cl&lt;br /&gt;add ah,30h&lt;br /&gt;mov [bx],ah&lt;br /&gt;dec bx&lt;br /&gt;mov ah,00h&lt;br /&gt;dec dl&lt;br /&gt;jnz again&lt;br /&gt;ret&lt;br /&gt;&lt;br /&gt;show:&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;lea dx,result+2&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;ret&lt;br /&gt;over:&lt;br /&gt;mov ah,4ch&lt;br /&gt;int 21h&lt;br /&gt;code1 ends&lt;br /&gt;end start&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8625135172473312925-2937128045325987608?l=8086masm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8086masm.blogspot.com/feeds/2937128045325987608/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8086masm.blogspot.com/2009/12/8086-program-to-convert-temperature-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8625135172473312925/posts/default/2937128045325987608'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8625135172473312925/posts/default/2937128045325987608'/><link rel='alternate' type='text/html' href='http://8086masm.blogspot.com/2009/12/8086-program-to-convert-temperature-in.html' title='8086 PROGRAM TO CONVERT THE TEMPERATURE IN DEGREE CELCIUS TO FAHRENHEIT AND KELVIN SCALE'/><author><name>Quizzing Champion</name><uri>https://profiles.google.com/105435936055400367769</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-2Mfq0Iw1-JY/AAAAAAAAAAI/AAAAAAAAAAA/JWBJ5T9qx-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8625135172473312925.post-7507096125124404243</id><published>2009-12-20T03:09:00.000-08:00</published><updated>2009-12-20T03:16:25.058-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='display in reverse order'/><category scheme='http://www.blogger.com/atom/ns#' term='parity checker'/><category scheme='http://www.blogger.com/atom/ns#' term='8086 MASM PROGRAM'/><title type='text'>8086 MASM PROGRAM TO Read in a binary string through keyboard and Display it in the reverse order.Also display its Parity.</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="color:#ff0000;"&gt;assume ds:data1,cs:code1&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff6600;"&gt;data1 segment&lt;br /&gt;msg db 0ah,0dh,'enter the binary number$'&lt;br /&gt;number db 20,0,20 dup('$')&lt;br /&gt;msg2 db 0ah,0dh,'the number in reversed order is$',0ah,0dh&lt;br /&gt;odd db 0ah,0dh,'the number has odd parity$'&lt;br /&gt;evenpar db 0ah,0dh,'the number has even parity$'&lt;br /&gt;data1 ends&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;code1 segment&lt;br /&gt;start:mov ax,seg data1&lt;br /&gt;mov ds,ax&lt;br /&gt;&lt;br /&gt;lea dx,msg&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;lea dx,number&lt;br /&gt;mov ah,0ah&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;mov bx,0000h&lt;br /&gt;mov cx,bx&lt;br /&gt;mov cl,number+1&lt;br /&gt;lea si,number+2&lt;br /&gt;&lt;span style="color:#33cc00;"&gt;again:&lt;/span&gt;mov ax,0001h&lt;br /&gt;and al,[si]&lt;br /&gt;jz skip&lt;br /&gt;inc bx&lt;br /&gt;&lt;span style="color:#000066;"&gt;skip:&lt;/span&gt;inc si&lt;br /&gt;loop &lt;span style="color:#33cc00;"&gt;again&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;lea dx,msg2&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;mov cx,0000h&lt;br /&gt;mov cl,number+1&lt;br /&gt;dec si&lt;br /&gt;&lt;span style="color:#336666;"&gt;do:&lt;/span&gt;&lt;br /&gt;mov dl,[si]&lt;br /&gt;mov ah,02h&lt;br /&gt;int 21h&lt;br /&gt;dec si&lt;br /&gt;loop &lt;span style="color:#336666;"&gt;do &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;mov ax,bx&lt;br /&gt;mov bl,02h&lt;br /&gt;div bl&lt;br /&gt;and ah,01h&lt;br /&gt;jnz &lt;span style="color:#996633;"&gt;oddpar &lt;/span&gt;&lt;br /&gt;lea dx,&lt;span style="color:#990000;"&gt;evenpar &lt;/span&gt;&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;jmp down&lt;br /&gt;&lt;span style="color:#cc33cc;"&gt;oddpar:&lt;/span&gt;&lt;br /&gt;lea dx,odd&lt;br /&gt;mov ah,09h&lt;br /&gt;int 21h&lt;br /&gt;&lt;span style="color:#993399;"&gt;down:&lt;/span&gt; mov ah,4ch&lt;br /&gt;int 21h&lt;br /&gt;code1 ends&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#006600;"&gt;end start&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8625135172473312925-7507096125124404243?l=8086masm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8086masm.blogspot.com/feeds/7507096125124404243/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8086masm.blogspot.com/2009/12/8086-masm-program-to-read-in-binary.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8625135172473312925/posts/default/7507096125124404243'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8625135172473312925/posts/default/7507096125124404243'/><link rel='alternate' type='text/html' href='http://8086masm.blogspot.com/2009/12/8086-masm-program-to-read-in-binary.html' title='8086 MASM PROGRAM TO Read in a binary string through keyboard and Display it in the reverse order.Also display its Parity.'/><author><name>Quizzing Champion</name><uri>https://profiles.google.com/105435936055400367769</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-2Mfq0Iw1-JY/AAAAAAAAAAI/AAAAAAAAAAA/JWBJ5T9qx-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8625135172473312925.post-1844344841894919896</id><published>2009-12-05T07:57:00.001-08:00</published><updated>2009-12-05T08:04:20.538-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='LEAP YEAR'/><category scheme='http://www.blogger.com/atom/ns#' term='8086 MASM PROGRAM'/><title type='text'>8086 MASM PROGRAM TO FIND OUT WHETHER THE GIVEN YEAR IS A LEAP YEAR OR NOT</title><content type='html'>&lt;span style="font-family:trebuchet ms;font-size:130%;"&gt;assume ds:data1,cs:code1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#000099;"&gt;data1 segment&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#000099;"&gt;msg db 0ah,0dh,'enter the year$'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#000099;"&gt;number db 6,0,6 dup('$')&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#000099;"&gt;ys db 0ah,0dh,'yes,it is a leap year$'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#000099;"&gt;n db 0ah,0dh,'no,it is not a leap year$'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#000099;"&gt;data1 ends&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;code1 segment&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;start:mov ax,seg data1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;mov ds,ax&lt;br /&gt;lea dx,msg&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;mov ah,09h&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;int 21h&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;lea dx,number&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;mov ah,0ah&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;int 21h&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;lea bx,number+4&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;mov ah,[bx]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;mov al,[bx+1]&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;aad&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;mov bl,04h&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;div bl&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;and ah,0ffh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;jz yes&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;lea dx,n&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;mov ah,09h&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;int 21h&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;jmp down&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;yes:lea dx,ys&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;mov ah,09h&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;int 21h&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;down: mov ah,4ch&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;int 21h&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;color:#006600;"&gt;code1 ends&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:trebuchet ms;font-size:130%;"&gt;end start&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8625135172473312925-1844344841894919896?l=8086masm.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://8086masm.blogspot.com/feeds/1844344841894919896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://8086masm.blogspot.com/2009/12/8086-masm-program-to-find-out-whether.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8625135172473312925/posts/default/1844344841894919896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8625135172473312925/posts/default/1844344841894919896'/><link rel='alternate' type='text/html' href='http://8086masm.blogspot.com/2009/12/8086-masm-program-to-find-out-whether.html' title='8086 MASM PROGRAM TO FIND OUT WHETHER THE GIVEN YEAR IS A LEAP YEAR OR NOT'/><author><name>Quizzing Champion</name><uri>https://profiles.google.com/105435936055400367769</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-2Mfq0Iw1-JY/AAAAAAAAAAI/AAAAAAAAAAA/JWBJ5T9qx-c/s512-c/photo.jpg'/></author><thr:total>0</thr:total></entry></feed>
