vs 2010インラインアセンブリエラー:レジスタは「第2の操作数」のベース/インデックスである必要があります
971 ワード
ソース・コードのエラー・セクション:
コンパイラからのエラーメッセージ:
いろいろな検索を経て、適当な答えが見つからず、結局80 x 86でまとめた本をめくってみるしかなかったが、突然何が起こっているのか分かった.
分かったか?
16ビット汎用レジスタ:AX,BX,CX,DX
void __cdecl ScaleARGBFilterCols_SSSE3(uint8* dst_argb, const uint8* src_argb,
int dst_width, int x, int dx) {
__asm {
/*
push esi
push edi
mov edi, [esp + 8 + 4] // dst_argb
mov esi, [esp + 8 + 8] // src_argb
mov ecx, [esp + 8 + 12] // dst_width
movd xmm2, [esp + 8 + 16] // x
movd xmm3, [esp + 8 + 20] // dx
*/
mov edi, [dst_argb] // dst_argb
mov esi, [src_argb] // src_argb
mov ecx, [dst_width] // dst_width
movd xmm2, [x] // x
movd xmm3, [dx] // dx
コンパイラからのエラーメッセージ:
1>e:\bilinearitp\bilinearitp\scale_packed.c(30): error C2403: “dx”: “ ” /
1>e:\bilinearitp\bilinearitp\scale_packed.c(30): error C2415:
いろいろな検索を経て、適当な答えが見つからず、結局80 x 86でまとめた本をめくってみるしかなかったが、突然何が起こっているのか分かった.
分かったか?
16ビット汎用レジスタ:AX,BX,CX,DX