Fixed I/O handler parameter order
This commit is contained in:
parent
dfe367f53d
commit
52665168a9
1 changed files with 4 additions and 4 deletions
|
|
@ -183,7 +183,7 @@ BusPDP11.controller = {
|
||||||
{
|
{
|
||||||
var afn = this.controller.aIONotify[off];
|
var afn = this.controller.aIONotify[off];
|
||||||
if (afn && afn[1]) {
|
if (afn && afn[1]) {
|
||||||
afn[1](addr, b);
|
afn[1](b, addr);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
@ -223,10 +223,10 @@ BusPDP11.controller = {
|
||||||
var afn = this.controller.aIONotify[off];
|
var afn = this.controller.aIONotify[off];
|
||||||
if (afn) {
|
if (afn) {
|
||||||
if (afn[3]) {
|
if (afn[3]) {
|
||||||
afn[3](addr, w);
|
afn[3](w, addr);
|
||||||
} else if (afn[1]) {
|
} else if (afn[1]) {
|
||||||
afn[1](addr, w & 0xff);
|
afn[1](w & 0xff, addr);
|
||||||
afn[1](addr + 1, w >> 8);
|
afn[1](w >> 8, addr + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue