Contoh 1 & 2

Contoh cpp 1 & 2

#include <conio.h>
#include <dos.h>
#include <stdlib.h>
#define VIDEO_INT 0x10

int main(void)

{
union REGS in, out;

in.h.ah = 0x09;
in.h.al = 'D';
in.h.bh = 0x00;
in.h.bl = 0x09;
in.h.ch = 0x00;
in.h.cl = 0x05;

clrscr();

int86(VIDEO_INT, &in, &out);
getch();

return EXIT_SUCCESS;
}

Output


 

Komentar