private int writeBankJumpPointer(BufferedWriter bw, int curAddress, int end) throws Throwable {

    for(;rom.type[curAddress] == ROM.DATA_BANKJUMPPOINTER && curAddress < end;curAddress+=3) {
      addLabel(bw, curAddress);

      String bankString = "$"+Integer.toHexString(rom.data[curAddress] & 0xFF);
      String dataString = "$"+Integer.toHexString(((rom.data[curAddress+1]&0xFF) | ((rom.data[curAddress+2]&0xFF) << 8)) & 0xFFFF);

      if(rom.payloadAsBank[curAddress] >= 0)
        bankString = "BANK("+rom.getLabel(rom.payloadAsBank[curAddress])+")";
      if(rom.payloadAsAddress[curAddress+1] >= 0)
        dataString = rom.getLabel(rom.payloadAsAddress[curAddress+1]);

      if(rom.comment[curAddress] != null && !rom.comment[curAddress].isEmpty())
        dataString += " ; "+rom.comment[curAddress];

      bw.write("\tdbw "+bankString+", "+dataString+"\n");
    }
    if (rom.type[curAddress] != ROM.DATA_BYTEARRAY)
      bw.write("\n");
    return curAddress;
  }