《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
186 B

11 years ago
  1. int count=1;
  2. int value=1;
  3. int buf[10];
  4. void main()
  5. {
  6. asm(
  7. "cld \n\t"
  8. "rep \n\t"
  9. "stosl"
  10. :
  11. : "c" (count), "a" (value) , "D" (buf[0])
  12. :
  13. );
  14. }