2011-08-23 08:39:34 +00:00
|
|
|
/*
|
|
|
|
* AppleIIGo
|
|
|
|
* Slot interface
|
|
|
|
* (C) 2006 by Marc S. Ressl(ressl@lonetree.com)
|
|
|
|
* Released under the GPL
|
|
|
|
* Based on work by Steven E. Hugg
|
|
|
|
*/
|
|
|
|
|
|
|
|
package vavi.apps.appleii;
|
|
|
|
|
|
|
|
import java.util.Random;
|
|
|
|
|
|
|
|
|
|
|
|
public class Peripheral {
|
2017-11-21 00:36:54 +00:00
|
|
|
protected Random rand = new Random();
|
2011-08-23 08:39:34 +00:00
|
|
|
|
|
|
|
public Peripheral() {
|
2017-11-21 00:36:54 +00:00
|
|
|
}
|
|
|
|
|
2011-08-23 08:39:34 +00:00
|
|
|
public int ioRead(int address) {
|
2017-11-21 00:36:54 +00:00
|
|
|
return rand.nextInt(256);
|
2011-08-23 08:39:34 +00:00
|
|
|
}
|
2017-11-21 00:36:54 +00:00
|
|
|
|
2011-08-23 08:39:34 +00:00
|
|
|
public void ioWrite(int address, int value) {
|
|
|
|
}
|
2017-11-21 00:36:54 +00:00
|
|
|
|
2011-08-23 08:39:34 +00:00
|
|
|
public int memoryRead(int address) {
|
2017-11-21 00:36:54 +00:00
|
|
|
return 0;
|
2011-08-23 08:39:34 +00:00
|
|
|
}
|
2017-11-21 00:36:54 +00:00
|
|
|
|
2011-08-23 08:39:34 +00:00
|
|
|
public void memoryWrite(int address, int value) {
|
|
|
|
}
|
2017-11-21 00:36:54 +00:00
|
|
|
|
|
|
|
public void reset() {
|
|
|
|
}
|
2011-08-23 08:39:34 +00:00
|
|
|
}
|