diff options
author | Alex AUVOLAT <alex.auvolat@ens.fr> | 2013-11-04 23:47:56 +0100 |
---|---|---|
committer | Alex AUVOLAT <alex.auvolat@ens.fr> | 2013-11-04 23:47:56 +0100 |
commit | 7950298bf80fd1d1f311e7bd4f75b442df7c679c (patch) | |
tree | efb935d351a6dd798795641461f63cf17ca9f390 /csim/main.c | |
parent | 62705818bf8227a9a35fff6879306c1b861e9dfd (diff) | |
download | SystDigit-Projet-7950298bf80fd1d1f311e7bd4f75b442df7c679c.tar.gz SystDigit-Projet-7950298bf80fd1d1f311e7bd4f75b442df7c679c.zip |
C simulator quite completed.
Diffstat (limited to 'csim/main.c')
-rw-r--r-- | csim/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/csim/main.c b/csim/main.c index ce3f5b6..ad23cd8 100644 --- a/csim/main.c +++ b/csim/main.c @@ -23,7 +23,7 @@ void usage() { } // Arguments to be parsed -int steps = 42; +int steps = 12; char *romfile = NULL; char *filename = NULL; char *infile = NULL; @@ -80,10 +80,12 @@ int main(int argc, char **argv) { // Run t_machine *machine = init_machine(program); + i = 0; while (i < steps || steps == -1) { read_inputs(machine, input); machine_step(machine); write_outputs(machine, output); + i++; } // Cleanup |