B
berlin860
hello everyone:
I want to programming c++ with asm to simulate the getch().
getch() is included in <conio.h>, it's function is to get a
character from keyboard, but not echo.
my code as follow:
char my_getch()
{
char chr;
_asm
{
mov ah, 07H
INT 21H
mov chr, al
}
return chr;
}
but cannot pass the compiler. my complier is CL 7.1.
I want to programming c++ with asm to simulate the getch().
getch() is included in <conio.h>, it's function is to get a
character from keyboard, but not echo.
my code as follow:
char my_getch()
{
char chr;
_asm
{
mov ah, 07H
INT 21H
mov chr, al
}
return chr;
}
but cannot pass the compiler. my complier is CL 7.1.