-
Assuming you have GCC and Make installed,
cd
to the project directory and runmake debug
: Build with debug info printed to consolemake release
: Build without debug info printed to the consolemake clean
: Build gets cleaned i.e rm -rf -
You should now have the executable named
ece586_isa_simulator
in the top directory. -
Run it as follows:
$ ./ece586_isa_simulator <input_mem_file> <output_mem_file> <program_counter> <stack_address> <verbose_mode> <debug_mode>
-
For example, input mem file is
input.mem
and output in the file namedoutput.txt
setting theprogram counter
0
andstack address
to65535
. Selectverbose mode
by adding1
or0
. Selectdebug mode
by adding1
or0
$ ./ece586_isa_simulator input.mem output.txt 0 65535 1 0