私の上司はこれをアセンブリに変換するように頼んだので、アセンブリについてよく分かりません。誰かが私を助けてくれますか?アセンブリへのC擬似コード
これは私に
//Global Variables
#define HRM_PERIOD 15
int hrArr [HRM_PERIOD]
int *hrPt = hrArr;
/*
Function addtoarray
Parameter: int np - a value to add to the array
Description: Stores 16-bit value np in array using global pointer hraPt.
hraPt is incremented so that the next call will add the value
to the next element in the array. The pointer wraps to start
when it reaches the end of the array
*/
void addToArray(int np)
{
*hraPt = np;// save value
hraPt++; // increment pointer
// wrap around
if (hraPt == hrArr + HRM_PERIOD)
hraPt = hrArr
}
を与えられたC-擬似コードである
アーキテクチャとプロセッサーは? – rzetterberg
スネルキーすぎるとは思わないが、上司はタスクをリソースに効果的に割り当てるのに問題があるようだ。会社がアセンブリの開発を完了する必要がある場合、アセンブリ開発者を雇うことができます。 – David
あなたの「上司」はいつでも大学の教授ですか? –