-6
我有一个用C++编写的程序来计算字数。我将如何将其转换为程序集以运行在68000处理器上?我应该从哪里开始?将简单的C++程序转换为程序集(68000)
int _tmain(int argc, _TCHAR* argv[])
{
int i=0;
int words=0;
bool last_space=true;
while(test_string[i]!=0)
{
if(!last_space && test_string[i]==' ')//end of word - space preceded by not space must handle multi spaces
words=words+1;
if (test_string[i]==' ')
last_space=true;
else
last_space=false;
i++;
}
return 0;
}
使用68000编译器进行编译,并查看其汇编输出“-S” – 2013-05-02 17:20:21
我会先通过编译器运行并查看它... – 2013-05-02 17:20:22
您应该从学习68000处理器的汇编开始。 – 2013-05-02 17:20:26