|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.javagear.EmulateLoop
public class EmulateLoop
Ties JavaGear's components together. It loops the emulation with the appropriate NTSC/PAL Timing.
Field Summary | |
---|---|
protected int |
cyclesPerLine
CPU Cycles Per Scanline. |
protected int |
fps
Stores Desired FPS. |
protected Memory |
mem
Pointer to Memory. |
protected int |
numberOfScanlines
Number of Scanlines. |
protected boolean |
running
Stores whether thread is running. |
protected Screen |
screenpanel
Pointer to Java Screen Panel. |
protected Setup |
setup
Pointer to global system settings. |
protected SN76496 |
sn76496
Pointer to SN76496 PSG. |
protected java.lang.Thread |
thisThread
Pointer to this thread. |
protected Vdp |
vdp
Pointer to VDP. |
protected Z80 |
z80
Pointer to Z80. |
Constructor Summary | |
---|---|
EmulateLoop(Z80 z,
Memory m,
Vdp v,
SN76496 s,
Screen sp,
Setup setup)
EmulateLoop Constructor. |
Method Summary | |
---|---|
void |
reset()
Quickly Reset the Z80, Memory, VDP and Sound. |
void |
resumeThread()
Resume suspended Emulation. |
void |
run()
Run Emulation. |
void |
setNTSC()
Set NTSC Timing. |
void |
setPAL()
Set PAL Timing. |
void |
startThread()
Start Emulation. |
void |
stopThread()
Stop Emulation. |
void |
suspendThread()
Suspend Emulation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Vdp vdp
protected Z80 z80
protected SN76496 sn76496
protected Memory mem
protected Screen screenpanel
protected Setup setup
protected java.lang.Thread thisThread
protected boolean running
protected int fps
protected int numberOfScanlines
protected int cyclesPerLine
Constructor Detail |
---|
public EmulateLoop(Z80 z, Memory m, Vdp v, SN76496 s, Screen sp, Setup setup)
z
- Z80m
- Memoryv
- Vdps
- SN76496sp
- Screensetup
- SetupMethod Detail |
---|
public void reset()
public void startThread()
public void stopThread()
public void suspendThread()
public void resumeThread()
public void setNTSC()
public void setPAL()
public void run()
startThread()
.
run
in interface java.lang.Runnable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |