mirror of
https://codeberg.org/sethm/symon.git
synced 2026-11-07 19:12:23 +00:00
Fleshing out some of the interface for the CPU, Simulator, and Devices.
This commit is contained in:
1 parent
0163ae47b4
commit
a6abc2cd23
8 files changed
+202
-25
No files matched your search
@@ -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() {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user