This commit is contained in:
Dan Luu 2013-03-23 00:12:08 -04:00
parent c9023f6453
commit 1b7be5151d

10
PIC.js
View File

@ -72,6 +72,16 @@ PIC.prototype.ioport_write = function(mem8_loc, x) {
mem8_loc &= 1;
if (mem8_loc == 0) {
if (x & 0x10) {
/*
ICW1
// 7:5 = address (if MCS-80/85 mode)
// 4 == 1
// 3: 1 == level triggered, 0 == edge triggered
// 2: 1 == call interval 4, 0 == call interval 8
// 1: 1 == single PIC, 0 == cascaded PICs
// 0: 1 == send ICW4
*/
this.reset();
this.init_state = 1;
this.init4 = x & 1;