Playing around with the command parser and the Simulator class. Safe to ignore.

This commit is contained in:
Seth Morabito committed 2010-01-16 08:56:34 +00:00
1 parent f174f0312f
commit 5c7a98df86
3 files changed
+57 -51

No files matched your search

+5 -1
View File
@@ -158,7 +158,6 @@ public class Cpu implements InstructionTable {
case 2:
switch(irAddressMode) {
case 0: // #Immediate
effectiveAddress = -1;
effectiveData = args[0];
break;
case 1: // Zero Page
@@ -1297,6 +1296,11 @@ public class Cpu implements InstructionTable {
return (zp+getYRegister())&0xff;
}
void setResetVector(int address) throws MemoryAccessException {
bus.write(RST_VECTOR_H, (address&0xff00)>>>8);
bus.write(RST_VECTOR_L, address&0x00ff);
}
/**
* Given an opcode and its operands, return a formatted name.
*