os_kernel_lab/related_info/lab0/lab0_ex1.c
2013-09-17 19:50:39 +08:00

15 lines
186 B
C

int count=1;
int value=1;
int buf[10];
void main()
{
asm(
"cld \n\t"
"rep \n\t"
"stosl"
:
: "c" (count), "a" (value) , "D" (buf[0])
:
);
}