From 94e88e887cf2ee4c6b445924d26e134a90bcbd50 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Tue, 5 Nov 2013 10:18:00 +0100 Subject: Reorganized folders. --- tests/ram.mj | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/ram.mj (limited to 'tests/ram.mj') diff --git a/tests/ram.mj b/tests/ram.mj new file mode 100644 index 0000000..5bd4f29 --- /dev/null +++ b/tests/ram.mj @@ -0,0 +1,15 @@ +const addr = 2 +const word = 4 + +or_n(a:[n],b:[n]) = (o:[n]) where + if n = 0 then + o = [] + else + o = (a[0] or b[0]).(or_n(a[1..], b[1..])) + end if +end where + +main(ra:[addr], we, wa:[addr], c:[word]) = (o:[word]) where + o = ram(ra, we, wa, or_n(o, c)) +end where + -- cgit v1.2.3