Created
August 1, 2015 07:30
-
-
Save richard-liang/7ffaf7b07f7e0da85715 to your computer and use it in GitHub Desktop.
Test.smali
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.class public LTest; | |
.super Ljava/lang/Object; | |
.source "Test.java" | |
# direct methods | |
.method public constructor <init>()V | |
.registers 1 | |
.prologue | |
.line 3 | |
invoke-direct {p0}, Ljava/lang/Object;-><init>()V | |
return-void | |
.end method | |
.method public static main([Ljava/lang/String;)V | |
.registers 7 | |
.prologue | |
.line 5 | |
new-instance v0, Ljava/lang/StringBuilder; | |
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V | |
.line 6 | |
const-wide/high16 v2, 0x3ff0000000000000L # 1.0 | |
invoke-static {v2, v3}, Ljava/lang/Double;->valueOf(D)Ljava/lang/Double; | |
move-result-object v1 | |
.line 7 | |
invoke-virtual {v1}, Ljava/lang/Double;->doubleValue()D | |
move-result-wide v2 | |
invoke-virtual {v1}, Ljava/lang/Double;->doubleValue()D | |
move-result-wide v4 | |
add-double/2addr v2, v4 | |
invoke-virtual {v0, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder; | |
.line 8 | |
return-void | |
.end method |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment