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