AppleIIGo/Source/Peripheral.java
sicklittlemonkey dc8f597c62 Version 1.0.9 - changes by Nick
- fixed disk speed-up bug (Sherwood Forest reads with the drive motor off)
- added check for 2IMG header ID
- fixed processor status bugs in BRK, PLP, RTI, NMI, IRQ
2015-08-01 20:09:35 +12:00

35 lines
560 B
Java

/**
* AppleIIGo
* Slot interface
* Copyright 2006 by Marc S. Ressl(mressl@gmail.com)
* Released under the GPL
* Based on work by Steven E. Hugg
*/
import java.util.Random;
public class Peripheral {
protected Random rand = new Random();
public Peripheral() {
}
public int ioRead(int address) {
return rand.nextInt(256);
}
public void ioWrite(int address, int value) {
}
public int memoryRead(int address) {
return 0;
}
public void memoryWrite(int address, int value) {
}
public void reset() {
}
}