Indentations break the feed.
[SquirrelJME.git] / modules / cldc-compact / src / test / resources / lang / bytecode / TestALoad.j
blob3a5c0b7da2d9d6f48e2ed3234f98c8847a9e3304
1 ; -*- Mode: Jasmin; indent-tabs-mode: t; tab-width: 4 -*-
2 ; ---------------------------------------------------------------------------
3 ; Multi-Phasic Applications: SquirrelJME
4 ; Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
5 ; ---------------------------------------------------------------------------
6 ; SquirrelJME is under the GNU General Public License v3+, or later.
7 ; See license.mkd for licensing and copyright information.
8 ; ---------------------------------------------------------------------------
10 .class public lang/bytecode/TestALoad
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 .method private static __internal(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
20 .limit locals 8
21 .limit stack 4
22 ; Setup array to store values into
23 bipush 8
24 anewarray java/lang/String
26 ; Store 0
27 dup
28 bipush 0
29 aload_0
30 aastore
32 ; Store 1
33 dup
34 bipush 1
35 aload_1
36 aastore
38 ; Store 2
39 dup
40 bipush 2
41 aload_2
42 aastore
44 ; Store 3
45 dup
46 bipush 3
47 aload_3
48 aastore
50 ; Store 4
51 dup
52 bipush 4
53 aload 4
54 aastore
56 ; Store 5
57 dup
58 bipush 5
59 aload 5
60 aastore
62 ; Store 6
63 dup
64 bipush 6
65 aload 6
66 aastore
68 ; Store 7
69 dup
70 bipush 7
71 aload 7
72 aastore
74 ; Return array
75 areturn
76 .end method
78 .method public test()Ljava/lang/Object;
79 .limit locals 2
80 .limit stack 9
82 ; Call method and then just return its value
83 ldc "a"
84 ldc "b"
85 ldc "c"
86 ldc "d"
87 ldc "e"
88 ldc "f"
89 ldc "g"
90 ldc "h"
91 invokestatic lang/bytecode/TestALoad/__internal(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)[Ljava/lang/String;
93 ; Return value
94 areturn
95 .end method