主题:[讨论]急!急!急!急!
#include <stdio.h>
int main( )
{
short int byte;
printf("\nEnter an unsigned byte: ");
scanf("%c", &byte);
_asm
{
mov ax,[_byte];
mov bh,0;
mov bl,10;
div bl
mov bl,al
mov al,ah
mov ah,bl
mov _byte,ax
}
printf("%c\n",byte);
return 0;
}
为什么会报这样的错误“error C2443: operand size conflict”
int main( )
{
short int byte;
printf("\nEnter an unsigned byte: ");
scanf("%c", &byte);
_asm
{
mov ax,[_byte];
mov bh,0;
mov bl,10;
div bl
mov bl,al
mov al,ah
mov ah,bl
mov _byte,ax
}
printf("%c\n",byte);
return 0;
}
为什么会报这样的错误“error C2443: operand size conflict”