我目前正在学习汇编和C编程语言,我有几个关于它的问题。 C代码 int arith(int x, int y, int z) {
int t1 = x + y;
int t2 = z*48;
int t3 = t1 & 0xFFFF;
int t4 = t2 * t3;
return t4;
}
汇编代码 movl 16(%ebp),%eax
我在汇编中写入一个无符号长整型函数。 这是一个UTF-8字符。 我想检查它是否是1个,2个,3个或4个字节的UTF-8字符。到目前为止,我有这样的:(我改变代码不被字节序的影响,我认为...) movl 12(%ebp),%eax # Move long u to %eax
movl %eax,buff # Move long u to buff
andl $128,buff # &-ma