美文网首页
smali汇编(1)(待续)

smali汇编(1)(待续)

作者: bluewind1230 | 来源:发表于2018-01-26 16:05 被阅读0次

    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)(待续)

          本文链接:https://www.haomeiwen.com/subject/msqwaxtx.html