Example #1
0
 public function __construct($DEBUG = false)
 {
     $this->DEBUG = $DEBUG;
     $this->instructions = InstructionSet::createDefault();
     $this->registers = new Registers();
     $this->interrupts = new Interrupts();
     $this->memory = new Memory();
     $this->generateOpMap();
 }
 public function testInstructionSetContainsCorrectNumberOfInstructions()
 {
     $instructionSet = InstructionSet::createDefault();
     $this->assertCount(232, $instructionSet->getInstructions());
 }