digs.invaders
Class InvadersBoard

java.lang.Object
  extended by digs.invaders.InvadersBoard
All Implemented Interfaces:
CpuBoard

public class InvadersBoard
extends java.lang.Object
implements CpuBoard


Constructor Summary
InvadersBoard()
           
 
Method Summary
 int in(int port)
          Read from port
 void out(int port, int value)
          Write to port
 int read16(int address)
          Read a word
 int read16arg(int address)
          Read a word
 int read8(int address)
          Read a byte
 int read8arg(int address)
          Read a byte.
 int read8opc(int address)
          Read an opcode byte
 void write16(int address, int data)
          Write a word
 void write16fast(int address, int data)
          Write a word When a Cpu calls this method, a speed up can be achieved.
 void write8(int address, int data)
          Write a byte
 void write8fast(int address, int data)
          Write a byte When a Cpu calls this method, a speed up can be achieved.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvadersBoard

public InvadersBoard()
              throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

in

public int in(int port)
Description copied from interface: CpuBoard
Read from port

Specified by:
in in interface CpuBoard

out

public void out(int port,
                int value)
Description copied from interface: CpuBoard
Write to port

Specified by:
out in interface CpuBoard

read8

public int read8(int address)
Description copied from interface: CpuBoard
Read a byte

Specified by:
read8 in interface CpuBoard

write8

public void write8(int address,
                   int data)
Description copied from interface: CpuBoard
Write a byte

Specified by:
write8 in interface CpuBoard

read16

public int read16(int address)
Description copied from interface: CpuBoard
Read a word

Specified by:
read16 in interface CpuBoard

read16arg

public int read16arg(int address)
Description copied from interface: CpuBoard
Read a word

Specified by:
read16arg in interface CpuBoard

read8arg

public int read8arg(int address)
Description copied from interface: CpuBoard
Read a byte. Can be called by CPU to read an opcode argument

Specified by:
read8arg in interface CpuBoard

read8opc

public int read8opc(int address)
Description copied from interface: CpuBoard
Read an opcode byte

Specified by:
read8opc in interface CpuBoard

write16

public void write16(int address,
                    int data)
Description copied from interface: CpuBoard
Write a word

Specified by:
write16 in interface CpuBoard

write16fast

public void write16fast(int address,
                        int data)
Description copied from interface: CpuBoard
Write a word When a Cpu calls this method, a speed up can be achieved.

Specified by:
write16fast in interface CpuBoard

write8fast

public void write8fast(int address,
                       int data)
Description copied from interface: CpuBoard
Write a byte When a Cpu calls this method, a speed up can be achieved.

Specified by:
write8fast in interface CpuBoard