Instruction Set Simulator

The Instruction Set Simulator will work for the following set of Instructions:

Instruction
First byte
Second byte
MOV Rn, direct 0000 Rn direct
MOV direct, Rn 0001 Rn direct
MOV @Rn, Rm 0010 Rn Rm
MOV Rn, #immed 0011 Rn immediate
ADD Rn, Rm 0100 Rn Rm
SUB Rn, Rm 0101 Rn Rm
JZ Rn, relative 0110 Rn relative

Files:

  1. simm.cc
  2. simm.h
  3. Makefile
  4. Readme.txt
  5. fib.txt

Instructions:

Download all files and run make using the provided Makefile.
Run the simulator by typing at the command line: simm < input file >

Notes: