1 / 5

BAHASA RAKITAN

BAHASA RAKITAN. BAGIAN 2. BIOS Video Service. INT 10H Interupt 10H disebut juga sebagai BIOS Video Service .

Download Presentation

BAHASA RAKITAN

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. BAHASA RAKITAN BAGIAN 2

  2. BIOS Video Service INT 10H Interupt 10H disebut juga sebagai BIOS Video Service. Interupt 10H melayani lintas data ke layar CRT, mulai dari pemilihan modus layar CRT, mengendalikan kursor, tulis-menulis karakter bersama warnanya, hingga pengaturan pixel untuk grafik. Nomor fungsi INT 10H yang sering digunakan

  3. Contoh Program

  4. 1. Mencetak huruf dengan atributnya ;==============================================================================; ; PROGRAM : DUA1.ASM ; ; FUNGSI : MENCETAK KARAKTER BESERTA ATRIBUTNYA DENGAN INT 10H ; ;==============================================================================; .MODEL SMALL .CODE ORG 100H MULAI: MOV AH,09H ;NOMOR FUNGSI INTERRUPT MOV AL,'S' ;KARAKTER YANG AKAN DICETAK MOV BH,00H ;NOMOR HALAMAN LAYAR MOV BL,94H ;WARNA ATAU ATRIBUT DARI KARAKTER YANG ;AKAN DICETAK MOV CX,03H ;BANYAKNYA KARAKTER YANG AKAN DICETAK INT 10H ;LAKSANAKAN INTERRUPT INT 20H ;SELESAI DAN KEMBALI KE DOS END MULAI

  5. 2. Mencetak kalimat dengan atributnya ;==============================================================================; ;PROGRAM : DUA2.ASM ; ;FUNGSI : MENCETAK KALIMAT DENGAN ATRIBUTNYA DENGAN INT 10H ; ;---------------------------------------------------------------------------------------------------------------------; ; INPUT AX = 1300H ; ; BL = ATRIBUT ; ; BH = HALAMAN TAMPILAN ; ; DL = POSISI X ; ; DH = POSISI Y ; ; CH = PANJANG KALIMAT DALAM KARAKTER ; ;==============================================================================; .MODEL SMALL .CODE ORG 100H DATA: JMP MULAI KALIMAT DB 'MENULIS KARAKTER DENGAN' DB ' ATRIBUTNYA' MULAI: MOV AX,1300H MOV BL,10010101B MOV BH,00H MOV DL,20 MOV DH,12 MOV CX,33 LEA BP,KALIMAT ; INT 10H ;LAKSANAKAN INTERRUPT INT 20H ;SELESAI, KEMBALI KE DOS END DATA

More Related