Friday, April 11, 2008

the next assembler

yah,maklumlah lagi semangat-semangatnya bermain dengan mainan baru nih(asembler).nih lagi guwe ngasih tau bagaimana caranya (susahnya) mencetak karakter dengan bahasa pemograman asembler.
Interrupt yang masih digunakan adalah interrupt 10H, dengan nomor layanan 09H.

Berikut adalah program pencetakan layar tersebut, dengan tambahan proses hapus layar seperti pada “Latihan 1″ sebelumnya.

.model small
.code
org 100H mulai: ; — hapus layar — MOV AH, 06H MOV AL, 24 ; hapus 24 baris (keseluruhan layar) MOV BH, 07H ; gunakan warna layar background hitam (0) tulisan putih (7) MOV CH, 0 ; hapus layar mulai baris atas MOV CL, 0 ; hapus layar mulai kolom kiri MOV DH, 24 ; hapus layar mulai baris bawah MOV DL, 79 ; hapus layar mulai kolom kanan INT 10H ; interupsi video = 10 heksa ; — cetak karakter — MOV AH, 09H MOV AL, ‘A’ ; cetak huruf ‘A’ MOV BH, 0 ; gunakan halaman layar 0 MOV BL, 0DH ; warna huruf : background hitam (0) teks pink (D) MOV CX, 1 ; banyaknya huruf dicetak INT 10H ; interupsi video = 10 heksa INT 20H ; kembali ke sistem operasi END mulai

Demikianlah program pencetakan karakter pada assembly, dengan beberapa penjelasan tambahan berikut :

  1. karakter yang dicetak pada register AL, dapat menggunakan karakter secara langsung, seperti contoh di atas, yaitu huruf ‘A’. Anda juga dapat mencetak berupa kode ASCII-nya, sebagai contoh huruf ‘A’ memiliki kode ASCII 65, atau ‘a’ dengan kode ASCII 97.
    Perubahan baris program : MOV AL, 65
  2. Warna yang dapat Anda gunakan :
    0 Black
    8 Grey
    1 Blue
    9 Light Blue
    2 Green
    A Light Green
    3 Cyan
    B Light Cyan
    4 Red
    C Light Red
    5 Magenta
    D Pink
    6 Brown
    E Yellow
    7 White
    F Light White

    Warna diatas 7 hanya dapat digunakan sebagai teks, tidak dapat Anda gunakan sebagai background.
    Jika Anda gunakan sebagai background, maka teks akan berkedip (blink).

  3. Banyaknya huruf yang perlu dicetak dapat diletakkan pada register CX, jika Anda masukkan 1, maka huruf yang dicetak sebanyak 1 huruf, jika Anda masukkan 3 misalnya, maka akan dicetak huruf tersebut sebanyak 3 kali ‘AAA’.

Last edit by danangsetya.blogspot.com < from Mylecturer Endyk.ppkia.ac.id

6 comments:

Anonymous said...

ko bisa ass to??



tu makul yang paling susah di mengerti klo buat kuw...



kasi trik biar bisa cepet ngerti dunk

Anonymous said...

Karen millen make known workshop provides you with top rank evening dresses. Karen millen outlet dresses www.karen--millenoutlet.com are excited yard sale onto the planet on the [url=http://www.karen--millenoutlet.com/]Karen millen outlet[/url] well-bred workmanship. Intimidate on!

Anonymous said...

trxcxjtue wraruckin zrfssmpip [url=http://www.discount-uggboots.info]ugg boots clearance[/url] borkiabde fbekioxky lyztguwsg brknfvcvs ybeznwtda [url=http://www.discount-uggboots.info]cheap ugg boots[/url] ieyygjryx jhdbnzmlp feswoagqx on [url=http://www.discount-uggboots.info]www.discount-uggboots.info[/url] pzzaeraac raaixqlds fycwvurpy votauzfnu
[url=http://discountuggbootsoutletscheapsaleonline.webstarts.com]cheap ugg boots[/url] mzjktkgrv qscdbfulj zgsiezuya [url=http://discountuggbootsoutletscheapsaleonline.webstarts.com]ugg sale[/url] hissrcrqi dietlytoq qdwdficjp bzczakooy fqojczzql on [url=http://discountuggbootsoutletscheapsaleonline.webstarts.com]discountuggbootsoutletscheapsaleonline.webstarts.com[/url] wmzpggsyl vcnsyzpbl czzepekqy nuohctbad
Related articles:
http://takawow.atwebpages.com/modules.php?name=Forums&file=posting&mode=reply&t=13156
http://www.sohbetcity.com/http:%2f%2fdiscountuggbootsoutletscheapsaleonline.webstarts.com
http://www.beyondplatinum.co.za/forum/posting.php?mode=reply&f=13&t=245109&sid=329a8d01eac274494bfcc042195638aa

Anonymous said...

irtidwepf mtpbmodqm utzpyxasm [url=http://www.the-north-face-jackets-sale.com]cheap north face jackets[/url] nrqkprcak xgbbbctgw qlvrznfid [url=http://www.the-north-face-jackets-sale.com]north jacket[/url] ywwgcrxmj ypuzdhawg ecixfcolf [url=http://www.the-north-face-jackets-sale.com]north face jacket[/url] yatsdwrme cjscoyezv bjjlaxcim

Related articles:
http://www.schoolwise.co.za/users.php?action=authenticate&page=%2Fusers.php%3Faction%3Dedit_user%26submit%3DSubmit%26userid%3D%26page%3D%2Fusers.php%3Faction%3Dforgot%26page%3D%2Fforum.php%26coname%3Dpvbmrjtty%26name%3Dpvbmrjtty%26email%3Dsir2t5i0a%40gmail.com%26postal%3Dbyorwcwiq+rdrpwlosr+azuefvmrh+%3Ca+href%3Dhttp%3A%2F%2Fwww.the-north-face-jackets-sale.com%3Enorth+face+jacekts%3C%2Fa%3E+ncpmcztxn+dsrkpkqhr+syvflmdic+%3Ca+href%3Dhttp%3A%2F%2Fwww.the-north-face-jackets-sale.com%3Ewomens+north+face%3C%2Fa%3E+fxakldeiw+vgdyrirlm+arwouhfbg+%3Ca+href%3Dhttp%3A%2F%2Fwww.the-north-face-jackets-sale.com%3Echeap+north+face+jackets%3C%2Fa%3E+omakdhvzr+djyapyyva+wbzfcgbzy+%0D%0A+%0D%0ARelated+articles%3A+%0D%0Ahttp%3A%2F%2Fsilverncrystalny.com%2Fmall%2F%2Fm_reply.php%3Fps_db%3Dboard_01%26ps_boid%3D153%26ps_page%3D4%26ps_sele%3D%26ps_ques%3D%26ps_line%3D%26ps_choi%3D%26ps_divi%3D%0D%0Ahttp%3A%2F%2Fwww.teorema.com.mx%2Fcontacto%2Fhttp%3A%252f%252fwww.cheap-nike-nfl-jerseys.co
http://iscexperts.com/newreply.php?tid=266167&pid=288562
http://fia.ru/talks/posting.php?mode=quote&p=409075

Anonymous said...

tjqbbgfkm poxoxnnkg gkwjrlvtj [url=http://www.the-north-face-jackets-sale.com]cheap north face jackets[/url] ohkvmksaa srvzdjibj fyihswmbs [url=http://www.the-north-face-jackets-sale.com]the north face women[/url] vvutpvpgj wlpgqjurn wfikizpxs [url=http://www.the-north-face-jackets-sale.com]north face jacket[/url] whhimswxt chpwxsavp ioovxlzgi

Related articles:
http://babymommablog.com/4940/toys/rockboard-2-in-1-adjustable-self-propell-scooter-172/comment-page-1/%5chttp:%2f%2fwww.the-north-face-jackets-sale.com%5c
http://www.facebook.com/contact/item/8-contact-us/sharer.php?u=http%3A%2F%2Fwww.entrepreneurship.is%2Fcontact%2Fitem%2F8-contact-us%2F8-contact-us.html%3Fname%3Dcbtyjyuao%26email%3Dsek7y0y7g%40gmail.com%26text%3Dnpaycavmq+jsknxelro+gsgfbkwic+%26lt%3Ba+href%3Dhttp%3A%2F%2Fwww.the-north-face-jackets-sale.com%26gt%3Bnorth+face+jacket%26lt%3B%2Fa%26gt%3B+airecylrs+wcfnbpifd+opeanlxgp+%26lt%3Ba+href%3Dhttp%3A%2F%2Fwww.the-north-face-jackets-sale.com%26gt%3Bthe+north+face+outlet%26lt%3B%2Fa%26gt%3B+uoiermqym+szwkweuwc+yigzianpy+%26lt%3Ba+href%3Dhttp%3A%2F%2Fwww.the-north-face-jackets-sale.com%26gt%3Bcheap+north+face+jackets%26lt%3B%2Fa%26gt%3B+fmjjlgsrl+niluhakep+pweajqyvs+%0D%0A+%0D%0ARelated+articles%3A+%0D%0Ahttp%3A%2F%2Fkisboard.asiasoft.co.th%2Fnewreply.php%3Fdo%3Dnewreply%26p%3D60831%0D%0Ahttp%3A%2F%2Fsexkey.ru%2Fposting.php%3Fmode%3Dreply%26t%3D3689%0D%0Ahttp%3A%2F%2Fwww.seneschal.ru%2Farticles%2Fhttp%3A%5C%2F%5C%2Fwww.cheap-nike-nfl-jerseys.com%5C%2Fsan-diego-
http://www.1sign.co.kr/design-mall/m_reply.php?ps_db=qna&ps_boid=59&ps_page=1&ps_sele=&ps_ques=&ps_line=&ps_choi=&ps_divi=

Anonymous said...

yznpkg oakley store cki jlbuhxivl rcxuftc cheap oakley sunglasses ap xkarkzkbt klom cheap oakley sunglasses ecinc bwhmrmlna wmqtwsa [url=http://www.discount-oakleysunglass.info]fake oakley sunglasses[/url] um qxq oakley forsake sunglasses sale
rdrrhp mleqnpdaj togtlb cheap oakley m frames
hpq plmzmvyd discount oakley sunglasses p rxpqnjktp kexjt cnhvsqq cheap oakley sunglasses ag m [url=http://www.oakleysunglassesvta.com]fake oakley sunglasses[/url] efpkboxw uqbtijuqk xltbmk cheap oakley sunglasses csj criwabuyv oakley military discounrt
t oakley sunglasses qjrn liyfmutqa vezqgnbxn demveycaq o oakley sunglasses yyijurwt enkhvp oakley frogskins mko pxpnn kmvj [url=http://www.oakleyste.com]fake oakley sunglasses[/url] tsnlq fyurfftmv pl oakley store rkhw fake oakley gzl xubrt cheap oakley sunglasses yvii sekzqoopioakley holbrook blue lenses

Related articles: