Contoh02.cpp:
01 #include <conio.h>
02 #include <dos.h>
03 #include <stdlib.h>
04
05 #define VIDEO_INT 0x10 // BIOS Video Interrupt
06
07 int main(void)
08 {
09 clrscr();
10
11 asm mov ah, 0x09; // AH = 9 heks.
12 asm mov al, 0x41; // AL = 41 heks., huruf A
13 asm mov bh, 0x00; // BH = 0 heks., halaman layar
14 asm mov bl, 0x07; // BL = 7 heks., warna huruf
15 asm mov ch, 0x00; // CH dan CL menentukan banyak
16 asm mov cl, 0x01; // huruf yang akan dicetak
17 asm int VIDEO_INT; // Interupsi BIOS 10h
18
19 getch();
20 return EXIT_SUCCESS;
21 }
Tidak ada komentar:
Posting Komentar