readZStringAndPop static method

String readZStringAndPop(
  1. int fromAddress
)

Reads a string of Z characters and returns the decoded version.

Automatically pops the stack after the read is finished. this is equivalent to:

ZSCII.readZString(startingAtSomeAddress);
Z.callStack.pop();

Implementation

static String readZStringAndPop(int fromAddress) {
  var result = readZString(fromAddress);
  Z.engine.callStack.pop();
  return result;
}