From 52665168a98b21d1784d7103d1a28600f46ffb3d Mon Sep 17 00:00:00 2001 From: Jeff Date: Wed, 21 Sep 2016 12:48:05 -0700 Subject: [PATCH] Fixed I/O handler parameter order --- modules/pdp11/lib/bus.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/pdp11/lib/bus.js b/modules/pdp11/lib/bus.js index af72340b2..171b7049f 100644 --- a/modules/pdp11/lib/bus.js +++ b/modules/pdp11/lib/bus.js @@ -183,7 +183,7 @@ BusPDP11.controller = { { var afn = this.controller.aIONotify[off]; if (afn && afn[1]) { - afn[1](addr, b); + afn[1](b, addr); } }, @@ -223,10 +223,10 @@ BusPDP11.controller = { var afn = this.controller.aIONotify[off]; if (afn) { if (afn[3]) { - afn[3](addr, w); + afn[3](w, addr); } else if (afn[1]) { - afn[1](addr, w & 0xff); - afn[1](addr + 1, w >> 8); + afn[1](w & 0xff, addr); + afn[1](w >> 8, addr + 1); } } }