public int getObjPaletteValue(int address, TimeStamp time) {
    if (address >= 0 && address < 0x40) {
      if (objPalette[address] == null)
        return (address & 0x1) == 0 ? 0xff : 0x7f;
      return objPalette[address].getValueAt(time, (address & 0x1) == 0 ? 0xff : 0x7f);
    } else
      throw new RuntimeException("Address " + address + " not in OBJ palette");
  }