smali汇编(1)(待续)

smali语言指令-算数运算

//数据操作-算数操作
public void numCtrl(int b){
int a = b;
boolean b1 = true;
log.d("MainActivity","a+b"+(a+b));
log.d("MainActivity","a-b"+(a-b));
log.d("MainActivity","a/b"+(a/b));
log.d("MainActivity","a*b"+(a*b));
log.d("MainActivity","a%b"+(a%b));

}
smali代码:
.method public numCtrl(I)V
.locals 5
.param p1,"b"    #I
.prologue  #代码开始

.line 30

你可能感兴趣的:(smali汇编(1)(待续))