<?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-2152289624391289358</id><updated>2011-05-31T20:45:25.828-07:00</updated><category term='volume of cylinder'/><category term='calculation program'/><category term='sample visual basic program'/><title type='text'>Programming Language Lectures</title><subtitle type='html'>Sample Program Collection from my Programming Assignment</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://programlecture.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://programlecture.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Programming Lectures</name><uri>http://www.blogger.com/profile/05384127051774059853</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2152289624391289358.post-5187619921229925010</id><published>2008-09-25T23:25:00.000-07:00</published><updated>2008-09-25T23:27:13.084-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='volume of cylinder'/><category scheme='http://www.blogger.com/atom/ns#' term='sample visual basic program'/><title type='text'>Volume of a Cylinder - Sample Visual Basic Program</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_4KzE-E4WGqU/SNyAnr_Z4II/AAAAAAAAAAk/w0N4hbSNIzc/s1600-h/volume+cylinder.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://2.bp.blogspot.com/_4KzE-E4WGqU/SNyAnr_Z4II/AAAAAAAAAAk/w0N4hbSNIzc/s320/volume+cylinder.JPG" alt="" id="BLOGGER_PHOTO_ID_5250212684919070850" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;This program compute the volume of cylinder&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Private Sub Command1_Click()&lt;br /&gt;radius = " "&lt;br /&gt;hght = " "&lt;br /&gt;volume = " "&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Command2_Click()&lt;br /&gt;Unload Me&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub OK_Click()&lt;br /&gt;r = Val(radius.Text)&lt;br /&gt;h = Val(hght.Text)&lt;br /&gt;pi = 22 / 7&lt;br /&gt;v = pi * (r ^ 2) * h&lt;br /&gt;volume.Text = Str$(v)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub radius_Change()&lt;br /&gt;&lt;br /&gt;End Sub&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2152289624391289358-5187619921229925010?l=programlecture.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programlecture.blogspot.com/feeds/5187619921229925010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2152289624391289358&amp;postID=5187619921229925010' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/5187619921229925010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/5187619921229925010'/><link rel='alternate' type='text/html' href='http://programlecture.blogspot.com/2008/09/volume-of-cylinder-sample-visual-basic.html' title='Volume of a Cylinder - Sample Visual Basic Program'/><author><name>Programming Lectures</name><uri>http://www.blogger.com/profile/05384127051774059853</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_4KzE-E4WGqU/SNyAnr_Z4II/AAAAAAAAAAk/w0N4hbSNIzc/s72-c/volume+cylinder.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2152289624391289358.post-2277127330713414556</id><published>2008-09-25T23:13:00.000-07:00</published><updated>2008-09-25T23:17:48.331-07:00</updated><title type='text'>Sample Visual Basic Program - Convert Celsius and Farenheit</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_4KzE-E4WGqU/SNx-cAe8JyI/AAAAAAAAAAc/Y4aAfZiiewg/s1600-h/conversion+program.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://3.bp.blogspot.com/_4KzE-E4WGqU/SNx-cAe8JyI/AAAAAAAAAAc/Y4aAfZiiewg/s320/conversion+program.JPG" alt="" id="BLOGGER_PHOTO_ID_5250210285238363938" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;This Program computes for celcius and farenheit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;'celsius&lt;br /&gt;Private Sub Command1_Click()&lt;br /&gt;   Text2.Text = (5 / 9) * (Text1.Text - 32)&lt;br /&gt; &lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;'farenheit&lt;br /&gt;Private Sub Command2_Click()&lt;br /&gt;       Text2.Text = (9 / 5) * Text1.Text + 32&lt;br /&gt;End Sub&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2152289624391289358-2277127330713414556?l=programlecture.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programlecture.blogspot.com/feeds/2277127330713414556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2152289624391289358&amp;postID=2277127330713414556' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/2277127330713414556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/2277127330713414556'/><link rel='alternate' type='text/html' href='http://programlecture.blogspot.com/2008/09/sample-visual-basic-program-convert.html' title='Sample Visual Basic Program - Convert Celsius and Farenheit'/><author><name>Programming Lectures</name><uri>http://www.blogger.com/profile/05384127051774059853</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_4KzE-E4WGqU/SNx-cAe8JyI/AAAAAAAAAAc/Y4aAfZiiewg/s72-c/conversion+program.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2152289624391289358.post-6477814745096258534</id><published>2008-09-25T23:06:00.000-07:00</published><updated>2008-09-25T23:10:30.604-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='calculation program'/><category scheme='http://www.blogger.com/atom/ns#' term='sample visual basic program'/><title type='text'>Sample Program Visual Basic  - Calculation Program</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4KzE-E4WGqU/SNx8TTEQNyI/AAAAAAAAAAU/yizMP2Hs5BM/s1600-h/compute+program.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_4KzE-E4WGqU/SNx8TTEQNyI/AAAAAAAAAAU/yizMP2Hs5BM/s320/compute+program.JPG" alt="" id="BLOGGER_PHOTO_ID_5250207936584628002" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;The hands on example illustrates variables, the Val function, and the FormatCurrency function.&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;Three text boxes, seven labels, and four command buttons comprise the solution&lt;/li&gt;&lt;/ul&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;Be aware that there is a problem with the format command in general. The problem is that the discount amount is visually rounded by the FormatCurrency function to display in the “15% Discount” label. However, the calculation of the discount can create an answer that contains three or four decimal places. When the discount is subtracted from the Extended price, the answer can appear to be incorrect. Convince yourself. Try this: 10 units at $39.95. The answer displayed for Extended price is $399.50, which is correct. The answer displayed for the discount is $59.93 (rounded up from the actual answer of 59.925). The amount displayed for the Discounted Price is $339.58, which is the rounded result of 399.50 – 59.925. The solution—without using the Round function because it has not been introduced yet—is to add 5/10ths of a penny (.005) to the discount. Then both the discount and the resulting discounted price will both appear to be correct and will be correct!&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Program Source Code&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dim quan, price, exprice, discount As String&lt;br /&gt;Private Sub Calculate_Click()&lt;br /&gt;exprice = quan * price&lt;br /&gt;Text4.Text = FormatCurrency(exprice)&lt;br /&gt;Text5.Text = exprice * discount&lt;br /&gt;Text6.Text = Text4.Text - Text5.Text&lt;br /&gt;Text4.Text = FormatCurrency(Text4.Text)&lt;br /&gt;Text5.Text = FormatCurrency(Text5.Text)&lt;br /&gt;Text6.Text = FormatCurrency(Text6.Text)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Command1_Click()&lt;br /&gt;Text1.Text = ""&lt;br /&gt;Text2.Text = ""&lt;br /&gt;Text3.Text = ""&lt;br /&gt;Text4.Text = ""&lt;br /&gt;Text5.Text = ""&lt;br /&gt;Text6.Text = ""&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Command3_Click()&lt;br /&gt;End&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Form_Load()&lt;br /&gt;quan = 0&lt;br /&gt;price = 0&lt;br /&gt;exprice = 0&lt;br /&gt;discount = 0.15&lt;br /&gt;Text1.Text = n_quan&lt;br /&gt;Text3.Text = n_price&lt;br /&gt;Text4.Text = n_exprice&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Label9_Click()&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Text1_Change()&lt;br /&gt;quan = Val(Text1.Text)&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Text3_Change()&lt;br /&gt;price = Val(Text3.Text)&lt;br /&gt;End Sub&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2152289624391289358-6477814745096258534?l=programlecture.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programlecture.blogspot.com/feeds/6477814745096258534/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2152289624391289358&amp;postID=6477814745096258534' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/6477814745096258534'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/6477814745096258534'/><link rel='alternate' type='text/html' href='http://programlecture.blogspot.com/2008/09/sample-program-visual-basic-calculation.html' title='Sample Program Visual Basic  - Calculation Program'/><author><name>Programming Lectures</name><uri>http://www.blogger.com/profile/05384127051774059853</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_4KzE-E4WGqU/SNx8TTEQNyI/AAAAAAAAAAU/yizMP2Hs5BM/s72-c/compute+program.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2152289624391289358.post-8360651918148322449</id><published>2008-09-24T01:42:00.000-07:00</published><updated>2008-09-24T01:45:45.046-07:00</updated><title type='text'>Sample Visual Basic Program - Order Information</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4KzE-E4WGqU/SNn92lA-4RI/AAAAAAAAAAM/s6LZl44Kfr0/s1600-h/order+form.JPG"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://4.bp.blogspot.com/_4KzE-E4WGqU/SNn92lA-4RI/AAAAAAAAAAM/s6LZl44Kfr0/s320/order+form.JPG" alt="" id="BLOGGER_PHOTO_ID_5249505954768019730" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Private Sub Command1_Click()&lt;br /&gt;Dim cap, esp, latte, icecap, icelatte As Boolean&lt;br /&gt;Dim i_amount As Currency&lt;br /&gt;Dim n_tax As Currency&lt;br /&gt;Dim totaldue As Currency&lt;br /&gt;Dim q_amount As Integer&lt;br /&gt;Const n_cap = 1.5, n_esp = 2, n_latte = 2.5, n_icelatte = 3, n_icecap = 3.5, tax = 0.12&lt;br /&gt;q_amount = Val(txtquan.Text)&lt;br /&gt;If cappucino.Value = True Then&lt;br /&gt;  i_amount = q_amount * n_cap&lt;br /&gt;  lblamount.Caption = n_cap&lt;br /&gt;  lblsubtotal.Caption = i_amount&lt;br /&gt;ElseIf espresso.Value = True Then&lt;br /&gt;  i_amount = q_amount * n_esp&lt;br /&gt;  lblamount.Caption = n_esp&lt;br /&gt;  lblsubtotal.Caption = i_amount&lt;br /&gt;ElseIf late.Value = True Then&lt;br /&gt;  i_amount = q_amount * n_latte&lt;br /&gt;  lblamount.Caption = n_latte&lt;br /&gt;  lblsubtotal.Caption = i_amount&lt;br /&gt;ElseIf icedlatte.Value = True Then&lt;br /&gt;  i_amount = q_amount * n_icelatte&lt;br /&gt;  lblamount.Caption = n_icelatte&lt;br /&gt;  lblsubtotal.Caption = i_amount&lt;br /&gt;ElseIf icedcap.Value = True Then&lt;br /&gt; i_amount = q_amount * n_icecap&lt;br /&gt; lblamount.Caption = n_icecap&lt;br /&gt; lblsubtotal.Caption = i_amount&lt;br /&gt;End If&lt;br /&gt;If checktakeout.Value = 1 Then&lt;br /&gt;n_tax = tax * i_amount&lt;br /&gt;Else&lt;br /&gt;lbltax.Caption = 0&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;totaldue = i_amount + n_tax&lt;br /&gt;lbltax.Caption = n_tax&lt;br /&gt;lbltotaldue.Caption = totaldue&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;Private Sub cappucino_Click()&lt;br /&gt;MsgBox "Cappucino $1.5"&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Command2_Click()&lt;br /&gt;txtquan = ""&lt;br /&gt;lblamount = ""&lt;br /&gt;lblsubtotal = ""&lt;br /&gt;lbltax = ""&lt;br /&gt;lbltotaldue = ""&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Command3_Click()&lt;br /&gt;txtquan = ""&lt;br /&gt;lblamount = ""&lt;br /&gt;lblsubtotal = ""&lt;br /&gt;lbltax = ""&lt;br /&gt;lbltotaldue = ""&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Command5_Click()&lt;br /&gt;End&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub Label3_Click()&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub espresso_Click()&lt;br /&gt;MsgBox "Espresso $2.0"&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub icedcap_Click()&lt;br /&gt;MsgBox "Iced Cappucino $3.5"&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub icedlatte_Click()&lt;br /&gt;MsgBox "Iced Latte $3.00"&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub late_Click()&lt;br /&gt;MsgBox "Latte $2.5"&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*This is one of my programming assignment in my computer course&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2152289624391289358-8360651918148322449?l=programlecture.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programlecture.blogspot.com/feeds/8360651918148322449/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2152289624391289358&amp;postID=8360651918148322449' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/8360651918148322449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/8360651918148322449'/><link rel='alternate' type='text/html' href='http://programlecture.blogspot.com/2008/09/sample-visual-basic-prpgram-order.html' title='Sample Visual Basic Program - Order Information'/><author><name>Programming Lectures</name><uri>http://www.blogger.com/profile/05384127051774059853</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_4KzE-E4WGqU/SNn92lA-4RI/AAAAAAAAAAM/s6LZl44Kfr0/s72-c/order+form.JPG' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2152289624391289358.post-3414576624522022659</id><published>2008-09-22T22:20:00.001-07:00</published><updated>2008-09-22T22:20:55.797-07:00</updated><title type='text'>Password – Sample Assembly Program</title><content type='html'>; This program will validate if the user enter a correct password&lt;br /&gt;&lt;br /&gt;.mode small&lt;br /&gt;.code&lt;br /&gt;.stack&lt;br /&gt;org 100h&lt;br /&gt;&lt;br /&gt;START:&lt;br /&gt;MOV AH, 07 ; use service 7 command&lt;br /&gt;INT 21H&lt;br /&gt;CMP AL, ‘G’ ; was the type letter = G?&lt;br /&gt;JNE START ; if no start over&lt;br /&gt;INT 21H ; if yes get next letter&lt;br /&gt;CMP AL, ‘A’; was the type letter = A?&lt;br /&gt;JNE START ; if no start over&lt;br /&gt;INT 21H ; if yes get the last letter&lt;br /&gt;CMP AL, ‘B’ ; was the type letter = B?&lt;br /&gt;JNE START ; if no start over&lt;br /&gt;FINISH:&lt;br /&gt;INT 27H ; if yes terminate&lt;br /&gt;END START&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2152289624391289358-3414576624522022659?l=programlecture.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programlecture.blogspot.com/feeds/3414576624522022659/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2152289624391289358&amp;postID=3414576624522022659' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/3414576624522022659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/3414576624522022659'/><link rel='alternate' type='text/html' href='http://programlecture.blogspot.com/2008/09/password-sample-assembly-program.html' title='Password – Sample Assembly Program'/><author><name>Programming Lectures</name><uri>http://www.blogger.com/profile/05384127051774059853</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2152289624391289358.post-2352849761387960667</id><published>2008-09-22T22:15:00.001-07:00</published><updated>2008-09-22T22:15:13.255-07:00</updated><title type='text'>Repeating Characters – Sample Assembly Program</title><content type='html'>; This program will repeat any character typed on the keyboard&lt;br /&gt;&lt;br /&gt;.model small&lt;br /&gt;.code&lt;br /&gt;.stack&lt;br /&gt;org 100h&lt;br /&gt;&lt;br /&gt;START:&lt;br /&gt;MOV AH, O6           ; use service 6 command&lt;br /&gt;&lt;br /&gt;TOP:&lt;br /&gt;MOV DL, OFFH        ; read the character&lt;br /&gt;INT 21H&lt;br /&gt;JZ TYPEOUT            ; if there is was no character, type out old one&lt;br /&gt;MOV CL, AL             ; store new character&lt;br /&gt;CMP AL, ‘E’              ; was is an ‘E’?&lt;br /&gt;JE FINISH                ; if yes jump to the end of the program&lt;br /&gt;&lt;br /&gt;TYPEOUT:&lt;br /&gt;MOV DL, CL            ; type out store character&lt;br /&gt;INT 21H&lt;br /&gt;JMP TOP                    ; jump to the beginning&lt;br /&gt;&lt;br /&gt;FINISH:&lt;br /&gt;INT 27&lt;br /&gt;END START&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2152289624391289358-2352849761387960667?l=programlecture.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programlecture.blogspot.com/feeds/2352849761387960667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2152289624391289358&amp;postID=2352849761387960667' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/2352849761387960667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/2352849761387960667'/><link rel='alternate' type='text/html' href='http://programlecture.blogspot.com/2008/09/repeating-characters-sample-assembly.html' title='Repeating Characters – Sample Assembly Program'/><author><name>Programming Lectures</name><uri>http://www.blogger.com/profile/05384127051774059853</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2152289624391289358.post-3326294732432625955</id><published>2008-09-22T22:08:00.000-07:00</published><updated>2008-09-22T22:09:00.771-07:00</updated><title type='text'>Sample Assembly Program – User Input Function</title><content type='html'>; This program will accept an uppercase letters and convert it to lowercase letters&lt;br /&gt;&lt;br /&gt;.model small&lt;br /&gt;.code&lt;br /&gt;.stack&lt;br /&gt;org 100h&lt;br /&gt;&lt;br /&gt;start:&lt;br /&gt;jk: mov ah, 01h&lt;br /&gt;int 21h&lt;br /&gt;add al, 20h&lt;br /&gt;mov ah, 02h&lt;br /&gt;mov dl, al&lt;br /&gt;int 21h&lt;br /&gt;jnz jk&lt;br /&gt;int 27h&lt;br /&gt;code 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/2152289624391289358-3326294732432625955?l=programlecture.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programlecture.blogspot.com/feeds/3326294732432625955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2152289624391289358&amp;postID=3326294732432625955' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/3326294732432625955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/3326294732432625955'/><link rel='alternate' type='text/html' href='http://programlecture.blogspot.com/2008/09/sample-assembly-program-user-input.html' title='Sample Assembly Program – User Input Function'/><author><name>Programming Lectures</name><uri>http://www.blogger.com/profile/05384127051774059853</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2152289624391289358.post-2536481726362767571</id><published>2008-09-22T22:04:00.001-07:00</published><updated>2008-09-22T22:04:47.988-07:00</updated><title type='text'>Sample Assembly Program – Looping Operation</title><content type='html'>; This program will display ABCD vertically with sounds&lt;br /&gt;&lt;br /&gt;.model small&lt;br /&gt;.code&lt;br /&gt;.stack 100&lt;br /&gt;org 100h&lt;br /&gt;&lt;br /&gt;start :&lt;br /&gt;mov ah, 02h&lt;br /&gt;mov cl, 41h&lt;br /&gt;&lt;br /&gt;skip :&lt;br /&gt;mov dl, cl&lt;br /&gt;int 21h&lt;br /&gt;mov dl, 0ah ; move one line down&lt;br /&gt;int 21h&lt;br /&gt;mov dl, 0dh ; move to the first column&lt;br /&gt;int 21h&lt;br /&gt;inc cl&lt;br /&gt;cmp cl, 45h ; if true the output is 0, if false output 1&lt;br /&gt;jnz skip&lt;br /&gt;int 27h&lt;br /&gt;end start&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2152289624391289358-2536481726362767571?l=programlecture.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programlecture.blogspot.com/feeds/2536481726362767571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2152289624391289358&amp;postID=2536481726362767571' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/2536481726362767571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/2536481726362767571'/><link rel='alternate' type='text/html' href='http://programlecture.blogspot.com/2008/09/sample-assembly-program-looping.html' title='Sample Assembly Program – Looping Operation'/><author><name>Programming Lectures</name><uri>http://www.blogger.com/profile/05384127051774059853</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2152289624391289358.post-6101103003219538028</id><published>2008-09-22T21:58:00.001-07:00</published><updated>2008-09-22T21:58:24.355-07:00</updated><title type='text'>Assembly Language Sample Program</title><content type='html'>; This is my first sample TASM program&lt;br /&gt;; This program will print characters ABC on the screen&lt;br /&gt;&lt;br /&gt; .model small&lt;br /&gt;.code&lt;br /&gt;.stack&lt;br /&gt;org 100h&lt;br /&gt;&lt;br /&gt;start:&lt;br /&gt;&lt;br /&gt;mov ah, 02h&lt;br /&gt;mov cl, 41h&lt;br /&gt;mov dl, cl&lt;br /&gt;int 21h&lt;br /&gt;mov cl, 42h&lt;br /&gt;mov dl, cl&lt;br /&gt;int 21h&lt;br /&gt;mov cl, 43h&lt;br /&gt;mov dl, cl&lt;br /&gt;int 21h&lt;br /&gt;&lt;br /&gt;int 27h&lt;br /&gt;end start&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2152289624391289358-6101103003219538028?l=programlecture.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programlecture.blogspot.com/feeds/6101103003219538028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2152289624391289358&amp;postID=6101103003219538028' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/6101103003219538028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/6101103003219538028'/><link rel='alternate' type='text/html' href='http://programlecture.blogspot.com/2008/09/assembly-language-sample-program.html' title='Assembly Language Sample Program'/><author><name>Programming Lectures</name><uri>http://www.blogger.com/profile/05384127051774059853</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2152289624391289358.post-1005149140486689721</id><published>2008-09-22T21:35:00.000-07:00</published><updated>2008-09-22T21:38:50.833-07:00</updated><title type='text'>Assembly Language Programming</title><content type='html'>Assembly language is consider one of the most powerful programming languages ever developed and is consider the only low level language.  Low-level languages are representation of machine language in a form that is easy to understand by human.&lt;br /&gt;&lt;br /&gt;Assembly Language is an example of low-level language.  It has a direct control to the processor which makes it more powerful than other languages.&lt;br /&gt;&lt;br /&gt;Assembly Language Coding Format&lt;br /&gt;&lt;br /&gt;An assembler reads a program in low-level language format and generates codes of equivalent program in machine language.  To understand Assembly language programming you must be familiar with the instruction and how to use it.  Basic knowledge in the machine architecture is also important in creating the source code for a certain task.  When you create a program in Assembly language you must do more than describe a formal solution to your program code.  Programmers must break their codes into small basic steps.  These steps tell the processor what to do, one instruction at a time.&lt;br /&gt;&lt;br /&gt;Assembly Language has four field, namely&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;(Label)&lt;/span&gt;&lt;br /&gt;A name defined with specific attribute maximum length is 31 characters and end with;&lt;br /&gt;Characters such as A – Z / 0-9/?, @, _, and $&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Mnemonic&lt;/span&gt;&lt;br /&gt;Abbreviated spellings of instructions&lt;br /&gt;Contains 2 –to -7 letter acronym for the instruction&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[Operand]&lt;/span&gt;&lt;br /&gt;Part of instruction that represents a value on which the instruction or directive acts.&lt;br /&gt;Contain either 1 or 2 operands, separated from the mnemonic by 1 space or tab.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;[;comment]&lt;/span&gt;&lt;br /&gt;All or part of a statement that is ignored by the Assembler, preceded by a semicolon ;&lt;br /&gt;&lt;br /&gt;SAMPLE&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;MOV  dl, 0ah ; Move one line down&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Assembly Language Program Part&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;.model&lt;/span&gt; &lt;tiny,&gt;&lt;br /&gt;- specifies the memory model that you want to use&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;.stack&lt;/span&gt; - defines the beginning and end of stacks&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;.data&lt;/span&gt; - allows the user to create a data segment, data destination&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;.code&lt;/span&gt; - defines program instruction&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;start&lt;/span&gt; - tells the compiler the beginning of the program body&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;end&lt;/span&gt; - finish the assembler program&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;How to construct an Assembly Language Program&lt;/span&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt; Create a source code using a text editor program (MS-DOS Edit, MS Windows Note Pad). The extension name is .ASM&lt;/li&gt;&lt;li&gt;Using the TASM compiler, create an Object File with an extension name of .OBJ&lt;/li&gt;&lt;li&gt;Linking the Object File (.OBJ) will produce an Executable File&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2152289624391289358-1005149140486689721?l=programlecture.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://programlecture.blogspot.com/feeds/1005149140486689721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2152289624391289358&amp;postID=1005149140486689721' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/1005149140486689721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2152289624391289358/posts/default/1005149140486689721'/><link rel='alternate' type='text/html' href='http://programlecture.blogspot.com/2008/09/assembly-language-programming.html' title='Assembly Language Programming'/><author><name>Programming Lectures</name><uri>http://www.blogger.com/profile/05384127051774059853</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
