There is already an existing project (albeit defunct) named j6502. Name changed to lm6502.
This commit is contained in:
1 parent
316d0feac6
commit
061eeba85c
8 files changed
+19
-22
No files matched your search
@@ -0,0 +1,48 @@
|
||||
package com.loomcom.lm6502;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* Main control class for the J6502 Simulator.
|
||||
*/
|
||||
public class Simulator {
|
||||
|
||||
/**
|
||||
* Command-line parser used by this simulator.
|
||||
*/
|
||||
CommandParser m_parser;
|
||||
|
||||
/**
|
||||
* The CPU itself.
|
||||
*/
|
||||
Cpu m_cpu;
|
||||
|
||||
/**
|
||||
* The Address Decoder responsible for routing memory
|
||||
* read/write requests to the correct IO devices.
|
||||
*/
|
||||
AddressDecoder m_adc;
|
||||
|
||||
public Simulator() {
|
||||
m_cpu = new Cpu(this);
|
||||
m_parser = new CommandParser(System.in, System.out, this);
|
||||
}
|
||||
|
||||
public void run() {
|
||||
m_parser.run();
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
new Simulator().run();
|
||||
}
|
||||
|
||||
public void step() {
|
||||
}
|
||||
|
||||
public int read(int address) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public void write(int address, int value) {
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user