Tests for AddressDecoder. Fixed a bug in isComplete().

This commit is contained in:
Seth J. Morabito committed 2008-12-10 19:57:38 -08:00
1 parent af7743b385
commit 0e212e71e5
7 files changed
+229 -32

No files matched your search

@@ -0,0 +1,27 @@
package com.loomcom.lm6502.devices;
import com.loomcom.lm6502.*;
public class Memory extends Device {
private boolean readOnly;
public Memory(int address, int size, Cpu cpu, boolean readOnly)
throws MemoryRangeException {
super(address, size, "RW Memory", cpu);
this.readOnly = readOnly;
}
public Memory(int address, int size, Cpu cpu)
throws MemoryRangeException {
this(address, size, cpu, false);
}
public void write(int address, int data) {
}
public int read(int address) {
return 0;
}
}