int X = 0;
int Y = 1;
while(X <= 10){
if(X%2 == 0)
Y = Y * X;
else
Y++;
X++;
}
cout << "Y is: " << Y;
这就是我的Easy68k代码。 ORG $1000
START: ; first instruction of pro
我有一个68k大会程序,计算3x3阵列的对角线的值的平均值并将其存储。 ORG $1000
START: ; first instruction of program
* Put program code here
move.w n,d6 ; d6 = 0000 0003
clr.l d7 ; sum = 0
move.w #2,d4
我需要的是这样的: if((ch > 'g' && ch < 'm') || (A >= 0 && A <= 100)) {
// Do some stuff
} else {
// Do some other stuff
}
ch是一个8位字符,而A是一个32位整数。 我怀疑我会需要这样的代码: CMPI.B #$67, ch
BLT SOMELABEL
CM