Klasse PSidHeader

java.lang.Object
libsidplay.sidtune.PSidHeader

public class PSidHeader extends Object
Header has been extended for 'RSID' format
The following changes are present:
  • id = 'RSID'
  • version = 2 or 3 only
  • play, load and speed reserved 0
  • psid specific flag reserved 0
  • init cannot be under ROMS/IO
  • load cannot be less than 0x0801 (start of basic)
all values big-endian
Autor:
Ken Händel
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    (Package privat) byte[]
    ASCII strings, 31 characters long and terminated by a trailing zero For version 0x0003, all 32 chars can be used without zero termination. if less than 32 chars are used then it should be terminated with a trailing zero
    (Package privat) short
    16-bit offset to binary data in file
    static final int
     
    (Package privat) short
    only version 0x0002+
    (Package privat) byte[]
    Magic (PSID or RSID)
    (Package privat) short
    16-bit C64 address of init subroutine
    (Package privat) static final Charset
     
    (Package privat) short
    16-bit C64 address to load file to
    (Package privat) byte[]
    ASCII strings, 31 characters long and terminated by a trailing zero For version 0x0003, all 32 chars can be used without zero termination. if less than 32 chars are used then it should be terminated with a trailing zero
    (Package privat) short
    16-bit C64 address of play subroutine
    (Package privat) byte[]
    ASCII strings, 31 characters long and terminated by a trailing zero For version 0x0003, all 32 chars can be used without zero termination. if less than 32 chars are used then it should be terminated with a trailing zero
    (Package privat) byte
    only version 0x0002+
    (Package privat) byte
    only version 0x0002+
    (Package privat) byte
    only version 0x0003 to indicate second SID chip address
    (Package privat) byte
    only version 0x0004 to indicate third SID chip address
    static final int
     
    (Package privat) short
    number of songs
    (Package privat) int
    32-bit speed info:
    bit: 0=50 Hz, 1=CIA 1 Timer A (default: 60 Hz)
    (Package privat) short
    start song out of [1..256]
    (Package privat) short
    0x0001, 0x0002, 0x0003 or 0x0004
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
    PSidHeader(byte[] header)
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    byte[]
     
     
     
     
    (Package privat) static String
    getString(byte[] info)
     

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • ISO_8859_1

      static final Charset ISO_8859_1
    • SIZE

      public static final int SIZE
      Siehe auch:
    • DATA_OFFSET_FIELD

      public static final int DATA_OFFSET_FIELD
      Siehe auch:
    • id

      byte[] id
      Magic (PSID or RSID)
    • version

      short version
      0x0001, 0x0002, 0x0003 or 0x0004
    • data

      short data
      16-bit offset to binary data in file
    • load

      short load
      16-bit C64 address to load file to
    • init

      short init
      16-bit C64 address of init subroutine
    • play

      short play
      16-bit C64 address of play subroutine
    • songs

      short songs
      number of songs
    • start

      short start
      start song out of [1..256]
    • speed

      int speed
      32-bit speed info:
      bit: 0=50 Hz, 1=CIA 1 Timer A (default: 60 Hz)
    • name

      byte[] name
      ASCII strings, 31 characters long and terminated by a trailing zero For version 0x0003, all 32 chars can be used without zero termination. if less than 32 chars are used then it should be terminated with a trailing zero
    • author

      byte[] author
      ASCII strings, 31 characters long and terminated by a trailing zero For version 0x0003, all 32 chars can be used without zero termination. if less than 32 chars are used then it should be terminated with a trailing zero
    • released

      byte[] released
      ASCII strings, 31 characters long and terminated by a trailing zero For version 0x0003, all 32 chars can be used without zero termination. if less than 32 chars are used then it should be terminated with a trailing zero
    • flags

      short flags
      only version 0x0002+
    • relocStartPage

      byte relocStartPage
      only version 0x0002+
    • relocPages

      byte relocPages
      only version 0x0002+
    • sidChip2MiddleNybbles

      byte sidChip2MiddleNybbles
      only version 0x0003 to indicate second SID chip address
    • sidChip3MiddleNybbles

      byte sidChip3MiddleNybbles
      only version 0x0004 to indicate third SID chip address
  • Konstruktordetails

    • PSidHeader

      public PSidHeader(byte[] header)
    • PSidHeader

      PSidHeader()
  • Methodendetails

    • getArray

      public byte[] getArray()
    • getString

      static String getString(byte[] info)
    • getName

      public String getName()
    • getAuthor

      public String getAuthor()
    • getReleased

      public String getReleased()