again



所有跟贴·加跟贴·新语丝科技论坛

送交者: AQuestion 于 2005-6-30, 19:10:11:

回答: Sorry, code again: 由 AQuestion 于 2005-6-30, 19:02:45:

don't know how to post less-than and greater than sign here.
Please replace lessThan with the correct ascii.

#include stdio.h

void test(int num)
{
int i;


__asm__ __volatile__(
"1:"
"dec %%ecx \n\t"
"jnz 1b \n\t"
:
: "c" (num>>4)
);

for(i=(num>>4)<<4; i lessThan num; i++)
printf("OK i=%d\n", i);
}

main()
{
test(35);
}




所有跟贴:


加跟贴

笔名: 密码(可选项): 注册笔名请按这里

标题:

内容(可选项):

URL(可选项):
URL标题(可选项):
图像(可选项):


所有跟贴·加跟贴·新语丝科技论坛