Indentations break the feed.
[SquirrelJME.git] / modules / cldc-compact / src / test / resources / lang / bytecode / TestAStore.j
blobf4cf2ac7767338b2235a2cbe834c2b25140122ba
1 ; -*- Mode: Jasmin; indent-tabs-mode: t; tab-width: 4 -*-
2 ; ---------------------------------------------------------------------------
3 ; SquirrelJME
4 ; Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 ; ---------------------------------------------------------------------------
6 ; SquirrelJME is under the Mozilla Public License Version 2.0.
7 ; See license.mkd for licensing and copyright information.
8 ; ---------------------------------------------------------------------------
10 .class public lang/bytecode/TestAStore
11 .super net/multiphasicapps/tac/TestSupplier
13 .method public <init>()V
14 aload 0
15 invokenonvirtual net/multiphasicapps/tac/TestSupplier/<init>()V
16 return
17 .end method
19 ; Store then load 0
20 .method private static __0()Ljava/lang/String;
21 .limit locals 8
22 .limit stack 3
23 ldc "a"
24 astore_0
25 aload_0
26 areturn
27 .end method
29 ; Store then load 1
30 .method private static __1()Ljava/lang/String;
31 .limit locals 8
32 .limit stack 3
33 ldc "b"
34 astore_1
35 aload_1
36 areturn
37 .end method
39 ; Store then load 2
40 .method private static __2()Ljava/lang/String;
41 .limit locals 8
42 .limit stack 3
43 ldc "c"
44 astore_2
45 aload_2
46 areturn
47 .end method
49 ; Store then load 3
50 .method private static __3()Ljava/lang/String;
51 .limit locals 8
52 .limit stack 3
53 ldc "d"
54 astore_3
55 aload_3
56 areturn
57 .end method
59 ; Store then load 4
60 .method private static __4()Ljava/lang/String;
61 .limit locals 8
62 .limit stack 3
63 ldc "e"
64 astore 4
65 aload 4
66 areturn
67 .end method
69 ; Store then load 5
70 .method private static __5()Ljava/lang/String;
71 .limit locals 8
72 .limit stack 3
73 ldc "f"
74 astore 5
75 aload 5
76 areturn
77 .end method
79 ; Store then load 6
80 .method private static __6()Ljava/lang/String;
81 .limit locals 8
82 .limit stack 3
83 ldc "g"
84 astore 6
85 aload 6
86 areturn
87 .end method
89 ; Store then load 7
90 .method private static __7()Ljava/lang/String;
91 .limit locals 8
92 .limit stack 3
93 ldc "h"
94 astore 7
95 aload 7
96 areturn
97 .end method
99 .method public test()Ljava/lang/Object;
100 .limit stack 4
101 ; Create array
102 bipush 8
103 anewarray java/lang/String
105 ; Store 0
107 bipush 0
108 invokestatic lang/bytecode/TestAStore/__0()Ljava/lang/String;
109 aastore
111 ; Store 1
113 bipush 1
114 invokestatic lang/bytecode/TestAStore/__1()Ljava/lang/String;
115 aastore
117 ; Store 2
119 bipush 2
120 invokestatic lang/bytecode/TestAStore/__2()Ljava/lang/String;
121 aastore
123 ; Store 3
125 bipush 3
126 invokestatic lang/bytecode/TestAStore/__3()Ljava/lang/String;
127 aastore
129 ; Store 4
131 bipush 4
132 invokestatic lang/bytecode/TestAStore/__4()Ljava/lang/String;
133 aastore
135 ; Store 5
137 bipush 5
138 invokestatic lang/bytecode/TestAStore/__5()Ljava/lang/String;
139 aastore
141 ; Store 6
143 bipush 6
144 invokestatic lang/bytecode/TestAStore/__6()Ljava/lang/String;
145 aastore
147 ; Store 7
149 bipush 7
150 invokestatic lang/bytecode/TestAStore/__7()Ljava/lang/String;
151 aastore
153 ; Return the array itself
154 areturn
155 .end method