Klasse MOS6526

java.lang.Object
libsidplay.components.pla.Bank
libsidplay.components.mos6526.MOS6526

public abstract class MOS6526 extends Bank
This class is heavily based on the ciacore/ciatimer source code from VICE. The CIA state machine is lifted as-is. Big thanks to VICE project!
Autor:
Antti Lankila
  • Felddetails

    • CREDITS

      private static final String CREDITS
      These are the credits.
      Siehe auch:
    • INTERRUPT_NONE

      private static final byte INTERRUPT_NONE
      Interrupt flag: no interrupt.
      Siehe auch:
    • INTERRUPT_UNDERFLOW_A

      private static final byte INTERRUPT_UNDERFLOW_A
      Interrupt flag: underflow Timer A.
      Siehe auch:
    • INTERRUPT_UNDERFLOW_B

      private static final byte INTERRUPT_UNDERFLOW_B
      Interrupt flag: underflow Timer B.
      Siehe auch:
    • INTERRUPT_ALARM

      private static final byte INTERRUPT_ALARM
      Interrupt flag: alarm clock.
      Siehe auch:
    • INTERRUPT_SP

      private static final byte INTERRUPT_SP
      Interrupt flag: serial port.
      Siehe auch:
    • INTERRUPT_FLAG

      private static final byte INTERRUPT_FLAG
      Interrupt flag: external flag.
      Siehe auch:
    • PRA

      public static final int PRA
      Siehe auch:
    • PRB

      public static final int PRB
      Siehe auch:
    • DDRA

      protected static final int DDRA
      Siehe auch:
    • DDRB

      protected static final int DDRB
      Siehe auch:
    • TAL

      private static final int TAL
      Siehe auch:
    • TAH

      private static final int TAH
      Siehe auch:
    • TBL

      private static final int TBL
      Siehe auch:
    • TBH

      private static final int TBH
      Siehe auch:
    • TOD_TEN

      private static final int TOD_TEN
      Siehe auch:
    • TOD_SEC

      private static final int TOD_SEC
      Siehe auch:
    • TOD_MIN

      private static final int TOD_MIN
      Siehe auch:
    • TOD_HR

      private static final int TOD_HR
      Siehe auch:
    • SDR

      private static final int SDR
      Siehe auch:
    • ICR

      public static final int ICR
      Siehe auch:
    • CRA

      protected static final int CRA
      Siehe auch:
    • CRB

      protected static final int CRB
      Siehe auch:
    • interruptSource

      protected final MOS6526.InterruptSource interruptSource
      CIA interrupt controller.
    • a

      protected final MOS6526.Timer a
      Timers A and B.
    • b

      protected final MOS6526.Timer b
      Timers A and B.
    • regs

      protected byte[] regs
      These are all CIA registers.
    • sdr_out

      protected byte sdr_out
    • sdr_buffered

      protected boolean sdr_buffered
    • sdr_count

      protected int sdr_count
    • context

      protected final EventScheduler context
      Event context.
    • m_todlatched

      protected boolean m_todlatched
    • m_todstopped

      protected boolean m_todstopped
    • m_todclock

      protected byte[] m_todclock
    • m_todalarm

      protected byte[] m_todalarm
    • m_todlatch

      protected byte[] m_todlatch
    • m_todCycles

      protected long m_todCycles
    • m_todPeriod

      protected long m_todPeriod
    • m_todEvent

      protected final Event m_todEvent
  • Konstruktordetails

  • Methodendetails

    • interrupt

      public abstract void interrupt(boolean state)
      Signal interrupt.
      Parameter:
      state - interrupt state
    • pulse

      public abstract void pulse()
    • readPRA

      public abstract byte readPRA()
    • readPRB

      public abstract byte readPRB()
    • writePRA

      public abstract void writePRA(byte data)
    • writePRB

      public abstract void writePRB(byte data)
    • setFlag

      public void setFlag(boolean flag)
      External interrupt control.
      Parameter:
      flag - Interrupt flag
    • reset

      public void reset()
      Reset CIA.
    • read

      public final byte read(int addr)
      Read CIA register.
      Setzt außer Kraft:
      read in Klasse Bank
      Parameter:
      addr - register address to read (lowest 4 bits)
      Gibt zurück:
      value at address
    • write

      public final void write(int addr, byte data)
      Write CIA register.
      Setzt außer Kraft:
      write in Klasse Bank
      Parameter:
      addr - register address to write (lowest 4 bits)
      data - value to write
    • credits

      public static final String credits()
      Get the credits.
      Gibt zurück:
      the credits
    • setDayOfTimeRate

      public final void setDayOfTimeRate(double clock)
      Set day-of-time event occurrence of rate.
      Parameter:
      clock -