printChar method

void printChar()

Implementation

void printChar() {
  //Debugger.verbose('${pcHex(-1)} [print_char]');

  final operands = visitOperandsVar(1, false);

  final z = operands[0].value!;

  if (z < 0 || z > 255) {
    throw GameException('ZSCII char is out of bounds.');
  }

  Z.sbuff.write(ZSCII.zCharToChar(z));
}