__movsb
[このドキュメントはプレビュー版であり、後のリリースで変更されることがあります。 Blank topics are included as placeholders.]
Microsoft 固有の仕様 →
移動の文字列 (rep movsb) 命令を生成します。
void __movsb(
unsigned char* Destination,
unsigned const char* Source,
size_t Count
);
パラメーター
[出力] Destination
コピーのターゲットへのポインター。[入力] Source
コピーのソースへのポインター。[入力] Count
コピーするバイト数。
必要条件
組み込み |
アーキテクチャ |
---|---|
__movsb |
x86x64 |
ヘッダー ファイル <intrin.h>
解説
結果は Source が指す Count の最初のバイトを Destination の文字列にコピーされます。
このルーチンは組み込みとしてのみ使用できます。
使用例
// movsb.cpp
// processor: x86, x64
#include <stdio.h>
#include <intrin.h>
#pragma intrinsic(__movsb)
int main()
{
unsigned char s1[100];
unsigned char s2[100] = "A big black dog.";
__movsb(s1, s2, 100);
printf_s("%s %s", s1, s2);
}