RSS

make the ‘A’ with inline assembly

23 Aug

#include <conio.h>
#include <dos.h>
#include <stdlib.h>

#define VIDEO_INT 0x10

int main(void)
{

clrscr();
asm mov ah, 0x09;
asm mov al, 0x41;
asm mov bh, 0x00;
asm mov bl, 0x07;
asm mov ch, 0x00;
asm mov cl, 0x01;
asm int VIDEO_INT;

getch();
return EXIT_SUCCESS;
}

 
Leave a comment

Posted by on August 23, 2011 in C ++, Computer

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: