fix bug in readPort function
This commit is contained in:
parent
1694a99df4
commit
3d81f09a69
|
@ -249,8 +249,8 @@ class Sim8800 {
|
||||||
return function(address) {
|
return function(address) {
|
||||||
var value = 0;
|
var value = 0;
|
||||||
// We only care about the port 0xff.
|
// We only care about the port 0xff.
|
||||||
if (address == 0xff && this.getInputAddressCallback) {
|
if (address == 0xff && self.getInputAddressCallback) {
|
||||||
var word = this.getInputAddressCallback();
|
var word = self.getInputAddressCallback();
|
||||||
return word >> 8;
|
return word >> 8;
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user