Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow more arguments.
  • Loading branch information
zhs04001 committed Nov 6, 2017
1 parent 19295d7 commit 5069811
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mips_sim.py
@@ -1,3 +1,5 @@
#!/usr/bin/python3

import sys, re
import core_sc, utilities

Expand All @@ -6,7 +8,7 @@ def sys_error(s):
exit(1)

argc = len(sys.argv)
if (argc < 2 or argc > 4):
if (argc < 2):
sys_error("Usage: mips_sim input_file [num_cycles] [-v]")

verbose = 0
Expand Down

0 comments on commit 5069811

Please sign in to comment.