Source: assembly/CB.js

Instruction = require("./instruction").Instruction
MEMORY_MODE = require("../machine/constants").MEMORY_MODE

/**
 * switch to binary mode
 */
class CB extends Instruction {
  constructor(OD, OF, bullGamma) {
    super(1, 15, OD, OF, bullGamma);
  }

  execute() {
    this.bullGamma._memoryMode = MEMORY_MODE.BINARY;
  }

  getDescription() {
    return "Selectionne le mode de calcul binaire";
  }

  getShortType() {
    return "CB";
  }

  getLongType() {
    return "Calcul Binaire";
  }

}

module.exports.CB = CB;