Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPawel Piech2012-10-30 18:41:48 +0000
committerPawel Piech2012-10-30 18:43:00 +0000
commit4d02730830a61dbf5178db62807eaa465cb18e6b (patch)
treecb97f4592b8439751ea7d6737b562bbf1543b566 /dsf/org.eclipse.cdt.examples.dsf.pda/samples
parent76b231ca15a925da14c240b1e49e7bd479e802b7 (diff)
downloadorg.eclipse.cdt-4d02730830a61dbf5178db62807eaa465cb18e6b.tar.gz
org.eclipse.cdt-4d02730830a61dbf5178db62807eaa465cb18e6b.tar.xz
org.eclipse.cdt-4d02730830a61dbf5178db62807eaa465cb18e6b.zip
DSF - Added support for arrays in PDA example.
Diffstat (limited to 'dsf/org.eclipse.cdt.examples.dsf.pda/samples')
-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