#include <conio.h>
#include <dos.h>
#include <stdlib.h>
#define VIDEO_INT 0x10 // BIOS Video Interrupt
int main(void)
{
clrscr();
asm mov ah, 0x09; // AH = 9 heks.
asm mov al, 0x41; // AL = 41 heks., huruf A
asm mov bh, 0x00; // BH = 0 heks., halaman layar
asm mov bl, 0x07; // BL = 7 heks., warna huruf
asm mov ch, 0x00; // CH dan CL menentukan banyak
asm mov cl, 0x01; // huruf yang akan dicetak
asm int VIDEO_INT; // Interupsi BIOS 10h
getch();
return EXIT_SUCCESS;
}
Gambarnya Sebagai Berikut :
Penjelasannya :
Perhatikanlah baris 11 sampai dengan baris 16! Instruksi mov ah, 0x09 artinya
menyimpan nilai 9 heksadesimal kedalam register AH. Demikian juga dengan instruksi mov
bh, 0x00 atau mov cl, 0x01. Dalam pemrograman bahasa assembly opcode mov digunakan
untuk memberikan nilai kedalam suatu operand, dalam hal ini register AH, AL, BH, BL dan
sebagainya. Kemudian amati pula baris 17. Pada baris 17 instruksi int VIDEO_INT bukan
berarti mendeklarasikan variabel VIDEO_INT dengan tipe data integer, melainkan
menjalankan interupsi yang nilai interupsinya disimpan dalam konstanta VIDEO_INT, yaitu
0x10 atau 10 heksadesimal. Dalam pemrograman bahasa assembly opcode int digunakan
untuk menjalankan interupsi sesuai dengan nomor interupsi sesudah kata kunci int.
Senin, 20 Juni 2016
Langganan:
Posting Komentar (Atom)
About Me
Diberdayakan oleh Blogger.
Popular Posts
-
#include <math.h> #include <stdlib.h> #include "screen.cpp" #include "keyboard.cpp" int main(void) { Screen ...
-
#include <stdlib.h> #include "screen.cpp" #define KEY_INT 0x16 /* Nomor interupsi keyboard */ #define KEY_F1 0x3b /* Kode sc...
-
#include <conio.h> #include <dos.h> #include <stdlib.h> #define VIDEO_INT 0x10 #define UCHAR unsigned char void getCursorP...
-
#include <conio.h> #include <dos.h> #include <stdio.h> #include <stdlib.h> #define VIDEO_INT 0x10 void getMode(union...
-
#include <conio.h> #include <dos.h> #include <stdlib.h> #define VIDEO_INT 0x10 #define UCHAR unsigned char v...
-
#include <stdlib.h> #include "screen.cpp #define KEY_INT 0x16 /* Nomor interupsi keyboard */ UCHAR getKey(void); int main(void) ...
-
#include <stdlib.h> #include "screen.cpp" #define KEY_INT 0x16 /* Nomor interupsi keyboard */ #define KEY_BACKSPACE 0x08 /* ...
-
#include <conio.h> #include <dos.h> #include <stdio.h> #include <stdlib.h> #define VIDEO_INT 0x10 #define UCHAR unsi...
-
#include <math.h> /* Deklarasi prototype atof */ #include <stdlib.h> /* Deklarasi prototype gcvt */ #include "screen.cpp...
-
#include <conio.h> #include <dos.h> #include <stdio.h> #include <stdlib.h> #define VIDEO_INT 0x10 // Nomor interupsi...
Formulir Kontak
Subscribe Here
Ad Home
Random Posts
Recent Posts
Recent
Header Ads
Popular Posts
-
#include <math.h> #include <stdlib.h> #include "screen.cpp" #include "keyboard.cpp" int main(void) { Screen ...
-
#include <stdlib.h> #include "screen.cpp" #define KEY_INT 0x16 /* Nomor interupsi keyboard */ #define KEY_F1 0x3b /* Kode sc...
-
#include <conio.h> #include <dos.h> #include <stdlib.h> #define VIDEO_INT 0x10 #define UCHAR unsigned char void getCursorP...
-
#include <conio.h> #include <dos.h> #include <stdio.h> #include <stdlib.h> #define VIDEO_INT 0x10 void getMode(union...
-
#include <conio.h> #include <dos.h> #include <stdlib.h> #define VIDEO_INT 0x10 #define UCHAR unsigned char v...
-
#include <stdlib.h> #include "screen.cpp #define KEY_INT 0x16 /* Nomor interupsi keyboard */ UCHAR getKey(void); int main(void) ...
-
#include <stdlib.h> #include "screen.cpp" #define KEY_INT 0x16 /* Nomor interupsi keyboard */ #define KEY_BACKSPACE 0x08 /* ...
-
#include <conio.h> #include <dos.h> #include <stdio.h> #include <stdlib.h> #define VIDEO_INT 0x10 #define UCHAR unsi...
-
#include <math.h> /* Deklarasi prototype atof */ #include <stdlib.h> /* Deklarasi prototype gcvt */ #include "screen.cpp...
-
#include <conio.h> #include <dos.h> #include <stdio.h> #include <stdlib.h> #define VIDEO_INT 0x10 // Nomor interupsi...
Flickr
Newsletter
Subscribe Our Newsletter
Enter your email address below to subscribe to our newsletter.
Ad Banner
About Us
Random Posts
Popular Posts
-
#include <math.h> #include <stdlib.h> #include "screen.cpp" #include "keyboard.cpp" int main(void) { Screen ...
-
#include <stdlib.h> #include "screen.cpp" #define KEY_INT 0x16 /* Nomor interupsi keyboard */ #define KEY_F1 0x3b /* Kode sc...
-
#include <conio.h> #include <dos.h> #include <stdlib.h> #define VIDEO_INT 0x10 #define UCHAR unsigned char void getCursorP...
-
#include <conio.h> #include <dos.h> #include <stdio.h> #include <stdlib.h> #define VIDEO_INT 0x10 void getMode(union...
-
#include <conio.h> #include <dos.h> #include <stdlib.h> #define VIDEO_INT 0x10 #define UCHAR unsigned char v...
-
#include <stdlib.h> #include "screen.cpp #define KEY_INT 0x16 /* Nomor interupsi keyboard */ UCHAR getKey(void); int main(void) ...
-
#include <stdlib.h> #include "screen.cpp" #define KEY_INT 0x16 /* Nomor interupsi keyboard */ #define KEY_BACKSPACE 0x08 /* ...
-
#include <conio.h> #include <dos.h> #include <stdio.h> #include <stdlib.h> #define VIDEO_INT 0x10 #define UCHAR unsi...
-
#include <math.h> /* Deklarasi prototype atof */ #include <stdlib.h> /* Deklarasi prototype gcvt */ #include "screen.cpp...
-
#include <conio.h> #include <dos.h> #include <stdio.h> #include <stdlib.h> #define VIDEO_INT 0x10 // Nomor interupsi...
Blog Archive
-
▼
2016
(30)
-
▼
Juni
(30)
- Contoh 27 (Coding) dan Gambarnya
- Contoh Mouse.cpp (Coding)
- Contoh 26 (Coding) dan Gambarnya
- Contoh 25 (Coding) dan Gambarnya
- Contoh 24 (Coding) dan Gambarnya
- Contoh 23 (Coding) dan Gambarnya
- Contoh 22 (Coding) dan Gambarnya
- Contoh 21 (Coding) dan Gambarnya
- Contoh 20 (Coding) dan Gambarnya
- Contoh 19 (Coding) dan Gambarnya
- Contoh 18 (Coding) dan Gambarnya
- Contoh 17 (Coding) dan Gambarnya
- Contoh Keyboard.cpp (Coding)
- Contoh 16 (Coding) dan Gambarnya
- Contoh 15 (Coding) dan Gambarnya
- Contoh 14 (Coding) dan Gambarnya
- Contoh 13 (Coding) dan Gambarnya
- Contoh 12 (Coding) dan Gambarnya
- Contoh 11 (Coding) dan Gambarnya
- Contoh 10 (Coding) dan Gambarnya
- Contoh Screen.cpp (Coding)
- Contoh 9 (Coding) dan Gambarnya
- Contoh 8 (Coding) dan Gambarnya
- Contoh 7 (Coding) dan Gambarnya
- Contoh 6 (Coding) dan Gambarnya
- Contoh 5 (Coding) dan Gambarnya
- Contoh 4 (Coding) dan Gambarnya
- Contoh 3 (Coding) dan Gambarnya
- Contoh 2 (Coding) dan Gambarnya
- Contoh 1 (Coding) dan Gambarnya
-
▼
Juni
(30)










0 komentar:
Posting Komentar