-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path1697.rs2asm
45 lines (45 loc) · 1.15 KB
/
1697.rs2asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
.int_stack_count 1
.string_stack_count 1
.int_var_count 1
.string_var_count 1
iload 0
load_int 2147483647
if_icmpge LABEL4
jump LABEL6
LABEL4:
load_string "*"
return
LABEL6:
iload 0
load_int 10000000
if_icmpge LABEL10
jump LABEL18
LABEL10:
iload 0
load_int 1000000
idiv
load_string ","
invoke 46
load_string "M"
concat_string
return
LABEL18:
iload 0
load_int 10000
if_icmpge LABEL22
jump LABEL30
LABEL22:
iload 0
load_int 1000
idiv
load_string ","
invoke 46
load_string "K"
concat_string
return
LABEL30:
iload 0
int_to_string
return
load_string ""
return