summaryrefslogtreecommitdiff
path: root/monitor
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2014-01-03 22:43:07 +0100
committerAlex AUVOLAT <alex.auvolat@ens.fr>2014-01-03 22:43:07 +0100
commit1847bba4d356264268116d7d0b313b86e0af7c5b (patch)
tree78ed2fb08ce6f3534ca00afefb6fdc0588a5c97c /monitor
parent1b32dfecc4fd1c9d9d024bb053c43ea17021cc65 (diff)
downloadSystDigit-Projet-1847bba4d356264268116d7d0b313b86e0af7c5b.tar.gz
SystDigit-Projet-1847bba4d356264268116d7d0b313b86e0af7c5b.zip
CPU all implemented except missing ALU operations.
Diffstat (limited to 'monitor')
-rwxr-xr-xmonitor/monbin17231 -> 17247 bytes
-rw-r--r--monitor/mon.c2
2 files changed, 2 insertions, 0 deletions
diff --git a/monitor/mon b/monitor/mon
index 03e4012..9da1072 100755
--- a/monitor/mon
+++ b/monitor/mon
Binary files differ
diff --git a/monitor/mon.c b/monitor/mon.c
index b876559..41182a8 100644
--- a/monitor/mon.c
+++ b/monitor/mon.c
@@ -152,6 +152,8 @@ void mon_step(t_mon *mon) {
ticker = 1;
}
if (mon->ticker_input != -1) {
+ if (mon->inputs[mon->ticker_input].size == 1)
+ ticker = (ticker != 0 ? 1 : 0);
sprintf(mon->inputs[mon->ticker_input].value, "/%d", ticker);
}