|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.michab.simulator.DefaultChip de.michab.simulator.mos6502.Vic
Represents the C64's MOS6569 video interface chip.
Field Summary | |
static int |
BACKGRDCOL0
|
static int |
BACKGRDCOL1
|
static int |
BACKGRDCOL2
|
static int |
BACKGRDCOL3
|
static int |
CTRL1
Control register 1 |
static int |
CTRL2
|
static int |
EXTERIORCOL
|
static int |
INTERRUPTMASK
|
static int |
INTERRUPTREQUEST
|
static int |
MSBX
Most significant bit for X coordinate of all sprites. |
static int |
RASTERIRQ
Number of the rasterline that triggers irq. |
static int |
S0Y
Y coordinate sprite 0. |
static int |
S1X
|
static int |
S1Y
|
static int |
S2X
|
static int |
S2Y
|
static int |
S3X
|
static int |
S3Y
|
static int |
S4X
|
static int |
S4Y
|
static int |
S5X
|
static int |
S5Y
|
static int |
S6X
|
static int |
S6Y
|
static int |
S7X
|
static int |
S7Y
|
static int |
SPRITEBACKCOLL
|
static int |
SPRITEBACKGRD
|
static int |
SPRITECOL0
|
static int |
SPRITECOL1
|
static int |
SPRITECOL2
|
static int |
SPRITECOL3
|
static int |
SPRITECOL4
|
static int |
SPRITECOL5
|
static int |
SPRITECOL6
|
static int |
SPRITECOL7
|
static int |
SPRITEENABLE
Sprite enabled. |
static int |
SPRITEEXPANDX
|
static int |
SPRITEEXPANDY
|
static int |
SPRITEMULTIC0
|
static int |
SPRITEMULTIC1
|
static int |
SPRITEMULTICOL
|
static int |
SPRITESPRITECOLL
|
static int |
STROBEX
Light pen X. |
static int |
STROBEY
Light pen Y. |
static int[] |
VIC_RGB_COLORS
This defines a table of the 64s colors. |
static int |
VIDEOMEMBASE
|
Constructor Summary | |
Vic(Cpu6510 cpu,
Memory memory,
int colorRamAddress,
Clock clock)
Creates a VIC with the passed initial references. |
Method Summary | |
java.awt.Component |
getComponent()
Returns a java.awt.Component that will show this VIC's
output. |
java.awt.Color |
getExteriorColor()
Get the current frame color. |
Port[] |
getPorts()
Get an array of the chip's ports. |
byte |
read(int portId)
Read a byte from the given address. |
void |
reset()
Reset all registers to a zero value. |
protected void |
setAddresses(int charAdr,
int bitmap,
int videoram)
Set the chip's character address. |
void |
setPageAddress(int page)
Set the page address. |
void |
terminate()
Shuts down the Vic . |
void |
write(int portId,
byte value)
Write a byte into the given address. |
Methods inherited from class de.michab.simulator.DefaultChip |
createPorts |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int[] VIC_RGB_COLORS
public static final int S0Y
public static final int S1X
public static final int S1Y
public static final int S2X
public static final int S2Y
public static final int S3X
public static final int S3Y
public static final int S4X
public static final int S4Y
public static final int S5X
public static final int S5Y
public static final int S6X
public static final int S6Y
public static final int S7X
public static final int S7Y
public static final int MSBX
public static final int CTRL1
public static final int RASTERIRQ
public static final int STROBEX
public static final int STROBEY
public static final int SPRITEENABLE
public static final int CTRL2
public static final int SPRITEEXPANDY
public static final int VIDEOMEMBASE
public static final int INTERRUPTREQUEST
public static final int INTERRUPTMASK
public static final int SPRITEBACKGRD
public static final int SPRITEMULTICOL
public static final int SPRITEEXPANDX
public static final int SPRITESPRITECOLL
public static final int SPRITEBACKCOLL
public static final int EXTERIORCOL
public static final int BACKGRDCOL0
public static final int BACKGRDCOL1
public static final int BACKGRDCOL2
public static final int BACKGRDCOL3
public static final int SPRITEMULTIC0
public static final int SPRITEMULTIC1
public static final int SPRITECOL0
public static final int SPRITECOL1
public static final int SPRITECOL2
public static final int SPRITECOL3
public static final int SPRITECOL4
public static final int SPRITECOL5
public static final int SPRITECOL6
public static final int SPRITECOL7
Constructor Detail |
public Vic(Cpu6510 cpu, Memory memory, int colorRamAddress, Clock clock)
cpu
- A reference to the CPU for interrupt purposes.memory
- The memory for the VIC to operate on.colorRamAddress
- The address color ram should be mapped to.Method Detail |
public void terminate()
Vic
. After this call the object should not
longer be used.
public byte read(int portId)
Addressable
portId
- The source address.
public void write(int portId, byte value)
Addressable
portId
- The target address.value
- The value to be written.public Port[] getPorts()
Chip
null
if this
chip does not support ports.
public void setPageAddress(int page)
page
- The page address.protected void setAddresses(int charAdr, int bitmap, int videoram)
charAdr
- The character memory address.public java.awt.Component getComponent()
java.awt.Component
that will show this VIC's
output. This has to be used to place the emulator's display in a user
interface.
public void reset()
public java.awt.Color getExteriorColor()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |