about summary refs log tree commit diff stats
path: root/test/samples/x86_32/dg_test_03.S
diff options
context:
space:
mode:
Diffstat (limited to 'test/samples/x86_32/dg_test_03.S')
-rw-r--r--test/samples/x86_32/dg_test_03.S10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/samples/x86_32/dg_test_03.S b/test/samples/x86_32/dg_test_03.S
new file mode 100644
index 00000000..ac0edc56
--- /dev/null
+++ b/test/samples/x86_32/dg_test_03.S
@@ -0,0 +1,10 @@
+main:
+	MOV EBX, 0x1
+	JMP lbl1
+lbl1:
+	ADD EBX, 0x2
+	CMP EBX, 0x0
+	JNZ lbl1
+end:
+	MOV EAX, EBX
+	RET