Original Post
I am trying to do some inline Assembly, but am having some problems. I thought you used a variable in Assembly code by using [] around the variable name, but that is not working. Here is my code:
int main (void)
{
char myString[20];
asm {
mov dx, [myString]
mov ah, a
int 21h
}
getch();
return 0;
}
It gives me the error:
Operand types do not match.
When I try to do the mov dx, [myString] part of the code. Anybody know whats wrong and how to fix it?
A horse is a horse. There is no excuse for Hungarian notation.
DavidP - a CBoardian
dragon288@juno.com