Fleshing out some of the interface for the CPU, Simulator, and Devices.

This commit is contained in:
Seth Morabito committed 2008-12-05 20:00:48 -08:00
1 parent 0163ae47b4
commit a6abc2cd23
8 files changed
+202 -25

No files matched your search

+52
View File
@@ -0,0 +1,52 @@
package com.loomcom.j6502;
/**
* Main 6502 CPU Simulation.
*/
public class Cpu {
/**
* The Address Decoder responsible for routing memory
* read/write requests to the correct IO devices. Any
* simulated device can be
*/
AddressDecoder m_adc;
/**
* The Program Counter.
*/
int m_pc;
/**
* The system stack pointer.
*/
int m_sp;
/**
* The internal
*/
public Cpu() {
reset();
}
/**
* Reset the CPU to known initial values.
*/
public void reset() {
}
/**
* Trigger a maskable interrupt.
*/
public void interrupt() {
}
/**
* Trigger a nonmaskable interrupt.
*/
public void nmiInterrupt() {
}
}