uk.co.javagear
Class Ports

java.lang.Object
  extended by uk.co.javagear.Ports

public final class Ports
extends java.lang.Object

A class to attach virtual devices to the Z80's ports.

Version:
6th March 2002
Author:
Copyright (C) 2002 Chris White
See Also:
"JavaGear Final Project Report"

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

vdp

private Vdp vdp
Pointer to VDP.


controllers

private Controllers controllers
Pointer to Controllers.


sn76496

private SN76496 sn76496
Pointer to SN76496.


nat1

private int nat1
Nationalization Bit 1.


nat2

private int nat2
Nationalization Bit 2.


europe

private boolean europe
European / Domestic System.

Constructor Detail

Ports

public Ports(Vdp v,
             Controllers c,
             SN76496 s)
Ports Constructor.

Parameters:
v - Vdp
c - Controllers
s - SN76496
Method Detail

out

public void out(int port,
                int value)
Output to a Z80 port.

Parameters:
port - Port Number
value - Value to Output

in

public int in(int port)
Read from a Z80 Port.

Parameters:
port - Port Number
Returns:
Value from Port Number

setEurope

public void setEurope(boolean value)
Set Console to European / Japanese Model.

Parameters:
value - True is European, False is Japanese


Copyright © 2007 JavaGear. All Rights Reserved.