[Dev-C++] Re: Dev-cpp-users digest, Vol 1 #606 - 11 msgs
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: David M. <ci...@ya...> - 2002-02-09 06:21:34
|
ok the commands work but now I get the following error
35 c:\windows\temp\ccgxswab.s Error: too many memory references for `mov'
36 c:\windows\temp\ccu8twab.s Error: junk `h' after expression
36 c:\windows\temp\ccu8twab.s Error: suffix or operands invalid for `int'
37 c:\windows\temp\ccu8twab.s Error: too many memory references for `mov'
#include <iostream.h>
#include <stdlib.h>
int main()
{
char x, password[50];
cout << "Please enter your password" << endl;
do{
asm("mov AH,8");
asm("int 21h");
asm("mov x,AL");
cout << "*";
} while (x != '\n');
cout << endl;
system("PAUSE");
return 0;
}
the new problem I can see is how can I have errors on lines I don't even have
(the program is 17 lines long)
|