public abstract class MOS6526 extends Bank
Modifier and Type | Class and Description |
---|---|
protected class |
MOS6526.InterruptSource |
protected class |
MOS6526.InterruptSource6526
InterruptSource that acts like old CIA
|
protected class |
MOS6526.InterruptSource6526A
InterruptSource that acts like new CIA
|
static class |
MOS6526.Model |
protected class |
MOS6526.Timer
This class implements a Timer A or B of a MOS6526 chip.
|
Modifier and Type | Field and Description |
---|---|
protected MOS6526.Timer |
a
Timers A and B.
|
protected MOS6526.Timer |
b
Timers A and B.
|
protected EventScheduler |
context
Event context.
|
protected static int |
CRA |
protected static int |
CRB |
protected static int |
DDRA |
protected static int |
DDRB |
static int |
ICR |
protected MOS6526.InterruptSource |
interruptSource
CIA interrupt controller.
|
protected byte[] |
m_todalarm |
protected byte[] |
m_todclock |
protected long |
m_todCycles |
protected Event |
m_todEvent |
protected byte[] |
m_todlatch |
protected boolean |
m_todlatched |
protected long |
m_todPeriod |
protected boolean |
m_todstopped |
static int |
PRA |
static int |
PRB |
protected byte[] |
regs
These are all CIA registers.
|
protected boolean |
sdr_buffered |
protected int |
sdr_count |
protected byte |
sdr_out |
Modifier | Constructor and Description |
---|---|
protected |
MOS6526(EventScheduler ctx,
MOS6526.Model model)
Create a new CIA.
|
Modifier and Type | Method and Description |
---|---|
static String |
credits()
Get the credits.
|
abstract void |
interrupt(boolean state)
Signal interrupt.
|
abstract void |
pulse() |
byte |
read(int addr)
Read CIA register.
|
abstract byte |
readPRA() |
abstract byte |
readPRB() |
void |
reset()
Reset CIA.
|
void |
setDayOfTimeRate(double clock)
Set day-of-time event occurrence of rate.
|
void |
setFlag(boolean flag)
External interrupt control.
|
void |
write(int addr,
byte data)
Write CIA register.
|
abstract void |
writePRA(byte data) |
abstract void |
writePRB(byte data) |
public static final int PRA
public static final int PRB
protected static final int DDRA
protected static final int DDRB
public static final int ICR
protected static final int CRA
protected static final int CRB
protected final MOS6526.InterruptSource interruptSource
protected final MOS6526.Timer a
protected final MOS6526.Timer b
protected byte[] regs
protected byte sdr_out
protected boolean sdr_buffered
protected int sdr_count
protected final EventScheduler context
protected boolean m_todlatched
protected boolean m_todstopped
protected byte[] m_todclock
protected byte[] m_todalarm
protected byte[] m_todlatch
protected long m_todCycles
protected long m_todPeriod
protected final Event m_todEvent
protected MOS6526(EventScheduler ctx, MOS6526.Model model)
ctx
- the event contextpublic abstract void interrupt(boolean state)
state
- interrupt statepublic abstract void pulse()
public abstract byte readPRA()
public abstract byte readPRB()
public abstract void writePRA(byte data)
public abstract void writePRB(byte data)
public void setFlag(boolean flag)
flag
- Interrupt flagpublic void reset()
public final byte read(int addr)
public final void write(int addr, byte data)
public static final String credits()
public final void setDayOfTimeRate(double clock)
clock
- Copyright © 2018 Ken Händel. All rights reserved.