Indentations break the feed.
[SquirrelJME.git] / modules / cldc-compact / src / test / resources / lang / bytecode / TestSwap.j
blob79d6bbae624a54a74380d8a9d1491e1bf7e6860f
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/TestSwap
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 public test()I
20 .limit stack 2
22 ; b
23 sipush 1234
24 ; a
25 sipush 3000
27 ; b, a -> a, b
28 swap
30 ireturn
31 .end method