Class FileRegisters
java.lang.Object
|
+--FileRegisters
- Direct Known Subclasses:
- DebuggableFileRegisters
- public class FileRegisters
- extends java.lang.Object
Instances of this class are file registers of PICs.
You can read the source of this class here.
Constructor Summary |
FileRegisters()
Creates RAM and SystemRegisters included into the FileRegisters. |
Method Summary |
int |
Read(int address)
Returns byte at address address. |
int |
Read(int address,
int Bank)
Returns byte at address address in banl Bank. |
void |
Write(int address,
int n)
Writes byte n at address address. |
void |
Write(int address,
int n,
int Bank)
Writes byte n at address address in bank Bank. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
FileRegisters
public FileRegisters()
- Creates RAM and SystemRegisters included into the FileRegisters.
Read
public int Read(int address)
- Returns byte at address address.
- Parameters:
address
- Address to read byte from.
Write
public void Write(int address,
int n)
- Writes byte n at address address.
- Parameters:
address
- Address to write byte to.n
- Byte to write.
Read
public int Read(int address,
int Bank)
- Returns byte at address address in banl Bank.
- Parameters:
address
- Address to read byte from.Bank
- Bank to read byte from.
Write
public void Write(int address,
int n,
int Bank)
- Writes byte n at address address in bank Bank.
- Parameters:
address
- Address to write byte to.n
- Byte to write.Bank
- Bank to write to.