diff --git a/src/ide.js b/src/ide.js index 8d83dbe8..5d7cd783 100644 --- a/src/ide.js +++ b/src/ide.js @@ -83,8 +83,8 @@ function IDEDevice(cpu, master_buffer, slave_buffer, is_cd, nr, bus) this.pci_space = [ 0x86, 0x80, 0x10, 0x70, 0x05, 0x00, 0xA0, 0x02, 0x00, 0x80, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, - 0 | 1, 0, 0x00, 0x00, - 0 | 1, 0, 0x00, 0x00, + this.ata_port & 0xFF | 1, this.ata_port >> 8, 0x00, 0x00, + this.ata_port_high & 0xFF | 1, this.ata_port_high >> 8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, // second device 0x00, 0x00, 0x00, 0x00, // second device this.master_port & 0xFF | 1, this.master_port >> 8, 0x00, 0x00,