movstest.c
来自「汇编经典教程profession_assembly_language(Richa」· C语言 代码 · 共 18 行
C
18 行
/* movstest.c - An example of instructions with only input values */#include <stdio.h>int main(){ char input[30] = {"This is a test message.\n"}; char output[30]; int length = 25; asm volatile ("cld\n\t" "rep movsb" : : "S"(input), "D"(output), "c"(length)); printf("%s", output); return 0;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?