|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.co.javagear.Ports
public final class Ports
A class to attach virtual devices to the Z80's ports.
Field Summary | |
---|---|
private Controllers |
controllers
Pointer to Controllers. |
private boolean |
europe
European / Domestic System. |
private int |
nat1
Nationalization Bit 1. |
private int |
nat2
Nationalization Bit 2. |
private SN76496 |
sn76496
Pointer to SN76496. |
private Vdp |
vdp
Pointer to VDP. |
Constructor Summary | |
---|---|
Ports(Vdp v,
Controllers c,
SN76496 s)
Ports Constructor. |
Method Summary | |
---|---|
int |
in(int port)
Read from a Z80 Port. |
void |
out(int port,
int value)
Output to a Z80 port. |
void |
setEurope(boolean value)
Set Console to European / Japanese Model. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Vdp vdp
private Controllers controllers
private SN76496 sn76496
private int nat1
private int nat2
private boolean europe
Constructor Detail |
---|
public Ports(Vdp v, Controllers c, SN76496 s)
v
- Vdpc
- Controllerss
- SN76496Method Detail |
---|
public void out(int port, int value)
port
- Port Numbervalue
- Value to Outputpublic int in(int port)
port
- Port Number
public void setEurope(boolean value)
value
- True is European, False is Japanese
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |