diff options
author | Alex AUVOLAT <alex.auvolat@ens.fr> | 2013-11-11 17:30:46 +0100 |
---|---|---|
committer | Alex AUVOLAT <alex.auvolat@ens.fr> | 2013-11-11 17:30:46 +0100 |
commit | cc78e19aa9e6b7c8ec0e1e5ac26685e57406c69d (patch) | |
tree | 1adcf146d6a649e92fe4aa13232d70f143dc448b /tests/romtest.mj | |
parent | aca9d65df0a04d5161ec3485659bbb974b802fb0 (diff) | |
download | SystDigit-Projet-cc78e19aa9e6b7c8ec0e1e5ac26685e57406c69d.tar.gz SystDigit-Projet-cc78e19aa9e6b7c8ec0e1e5ac26685e57406c69d.zip |
Added ROM support, coded a 24/60/60 watch with output for 7-bit LCD display
Diffstat (limited to 'tests/romtest.mj')
-rw-r--r-- | tests/romtest.mj | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/romtest.mj b/tests/romtest.mj new file mode 100644 index 0000000..6d2daf2 --- /dev/null +++ b/tests/romtest.mj @@ -0,0 +1,9 @@ +dec7(i:[4]) = (o:[7]) where + decode7 = rom<4,7>(i); + o = decode7 +end where + +main(i1:[4],i2:[4]) = (o1:[7],o2:[7]) where + o1 = dec7(i1); + o2 = dec7(i2) +end where |