- Major overhaul of the Simulator control class (where 'main' lives).
- Removed the CommandParser class entirely, as the weird dependency between Simulator and CommandParser never made me comfortable. - Added a Command inner class to Simulator that handles some of the command line tokenizing.
This commit is contained in:
1 parent
5c7a98df86
commit
a3e57274a2
11 files changed
+364
-122
No files matched your search
@@ -70,7 +70,7 @@ public class CpuTest extends TestCase {
|
||||
|
||||
public void testStackPush() throws MemoryAccessException {
|
||||
assertEquals(0xff, cpu.getStackPointer());
|
||||
assertEquals(0xff, bus.read(0x1ff));
|
||||
assertEquals(0x00, bus.read(0x1ff));
|
||||
|
||||
cpu.stackPush(0x06);
|
||||
assertEquals(0xfe, cpu.getStackPointer());
|
||||
@@ -179,7 +179,7 @@ public class CpuTest extends TestCase {
|
||||
}
|
||||
|
||||
public void testStackPeekDoesNotAlterStackPointer() throws MemoryAccessException {
|
||||
assertEquals(0xff, cpu.stackPeek());
|
||||
assertEquals(0x00, cpu.stackPeek());
|
||||
assertEquals(0xff, cpu.getStackPointer());
|
||||
|
||||
cpu.stackPush(0x01);
|
||||
|
||||
Reference in new issue
Block a user