Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'dsf/org.eclipse.cdt.examples.dsf.pda/samples/arrays.pda')
-rw-r--r--dsf/org.eclipse.cdt.examples.dsf.pda/samples/arrays.pda14
1 files changed, 14 insertions, 0 deletions
diff --git a/dsf/org.eclipse.cdt.examples.dsf.pda/samples/arrays.pda b/dsf/org.eclipse.cdt.examples.dsf.pda/samples/arrays.pda
new file mode 100644
index 00000000000..6c5056c6e3f
--- /dev/null
+++ b/dsf/org.eclipse.cdt.examples.dsf.pda/samples/arrays.pda
@@ -0,0 +1,14 @@
+var a[10000]
+var i
+push 10000
+pop $i
+:start
+push $i
+dec
+pop $i
+push $i
+pop $a[i]
+push $i
+branch_not_zero start
+halt
+

Back to the top