Indentations break the feed.
[SquirrelJME.git] / modules / cldc-compact / src / test / resources / lang / bytecode / TestILoad.j
blob2c50e39dc6904f45aae064d89b9fc61a491723d0
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/TestILoad
11 .super net/multiphasicapps/tac/TestInteger
13 .method public <init>()V
14 aload 0
15 invokenonvirtual net/multiphasicapps/tac/TestInteger/<init>()V
16 return
17 .end method
19 .method private static __internal(IIIIIIII)I
20 .limit locals 8
21 .limit stack 9
22 ; Load everything in
23 iload_0
24 iload_1
25 iload_2
26 iload_3
27 iload 4
28 iload 5
29 iload 6
30 iload 7
32 ; Add all together
33 iadd
34 iadd
35 iadd
36 iadd
37 iadd
38 iadd
39 iadd
41 ; Return result
42 ireturn
43 .end method
45 .method public test()I
46 .limit locals 2
47 .limit stack 9
49 ; Call method and then just return its value
50 bipush 1
51 bipush 2
52 bipush 3
53 bipush 5
54 bipush 8
55 bipush 13
56 bipush 21
57 bipush 34
58 invokestatic lang/bytecode/TestILoad/__internal(IIIIIIII)I
60 ; Return value
61 ireturn
62 .end method