propertyNumber static method

int propertyNumber(
  1. int address
)

Implementation

static int propertyNumber(int address) {
  if (address == 0) return 0;

  if (ZMachine.verToInt(Z.engine.version) <= 3) {
    return Z.engine.mem.loadb(address) % 32;
  } else {
    // (ref 12.4.2)
    return BinaryHelper.bottomBits(Z.engine.mem.loadb(address), 6);
  }
}