Klasse PRG2TAP

java.lang.Object
libsidutils.prg2tap.PRG2TAP

public class PRG2TAP extends Object
  • Felddetails

    • TURBO_HEADER_ASM

      private static final String TURBO_HEADER_ASM
      Siehe auch:
    • TURBO_DATA_ASM

      private static final String TURBO_DATA_ASM
      Siehe auch:
    • SLOW_HEADER_ASM

      private static final String SLOW_HEADER_ASM
      Siehe auch:
    • TURBO_HEADER_BIN

      private static final String TURBO_HEADER_BIN
      Siehe auch:
    • TURBO_DATA_BIN

      private static final String TURBO_DATA_BIN
      Siehe auch:
    • SLOW_HEADER_BIN

      private static final String SLOW_HEADER_BIN
      Siehe auch:
    • USE_KICKASSEMBLER

      public static boolean USE_KICKASSEMBLER
    • MAX_NAME_LENGTH

      static final int MAX_NAME_LENGTH
      Siehe auch:
    • TAP_HEADER_SIZE

      private static final int TAP_HEADER_SIZE
      Siehe auch:
    • PULSE_LENGTH

      private static final int[] PULSE_LENGTH
    • tapVersion

      private byte tapVersion
    • threshold

      private int threshold
    • turboTape

      private boolean turboTape
    • result

      private List<Byte> result
  • Konstruktordetails

    • PRG2TAP

      public PRG2TAP()
  • Methodendetails

    • setTapVersion

      public final void setTapVersion(byte tapVersion)
    • setThreshold

      public final void setThreshold(int threshold)
    • setTurboTape

      public final void setTurboTape(boolean turboTape)
    • add

      public void add(PRG2TAPProgram program) throws IOException
      Add program to TAP file.
      Löst aus:
      IOException
    • addAssembled

      public void addAssembled(PRG2TAPProgram program) throws IOException
      Add program to TAP file.
      Löst aus:
      IOException
    • addBin

      public void addBin(PRG2TAPProgram program, byte[] turboHeaderBin, byte[] turboDataBin, byte[] slowHeaderBin) throws IOException
      Add program to TAP file.
      Löst aus:
      IOException
    • compileAssembled

      private byte[] compileAssembled(HashMap<String,String> globals, String resource)
    • compile

      private byte[] compile(String compiledBin)
    • getName

      private String getName(PRG2TAPProgram program)
    • addSilence

      public void addSilence(int ncycles) throws IOException
      Add silence for n cycles
      Parameter:
      ncycles - cycles of silence to add (1000000 ~ 1 sec)
      Löst aus:
      IOException
    • open

      public void open() throws IOException
      Open TAP file
      Löst aus:
      IOException
    • close

      public void close()
      Close TAP file
    • getResult

      public byte[] getResult()
    • slowConvert

      private void slowConvert(byte[] data, int startAddr, int length, int leadinLen) throws IOException
      Löst aus:
      IOException
    • slowWriteByte

      private void slowWriteByte(byte byt) throws IOException
      Löst aus:
      IOException
    • turbotapeConvert

      private void turbotapeConvert(PRG2TAPProgram program) throws IOException
      Löst aus:
      IOException
    • turbotapeWriteByte

      private void turbotapeWriteByte(byte byt) throws IOException
      Löst aus:
      IOException