public function executeInstruction() { switch ($opcode){ case 0b0000: // ADD A, Im $this->a += $im; break; } $byte = $this->ram[$this->pc]; case 0b0001:
public function executeInstruction() { switch ($opcode){ case 0b0000: // ADD A, Im $this->a += $im; break; } $this->pc++; } $byte = $this->ram[$this->pc]; case 0b0001: