1.1 --- a/Hardware/LPC/IT87XX.cs Sun Jun 27 20:49:29 2010 +0000
1.2 +++ b/Hardware/LPC/IT87XX.cs Mon Jun 28 20:39:49 2010 +0000
1.3 @@ -45,6 +45,7 @@
1.4
1.5 private ushort address;
1.6 private Chip chip;
1.7 + private byte version;
1.8
1.9 private readonly ushort addressReg;
1.10 private readonly ushort dataReg;
1.11 @@ -78,10 +79,11 @@
1.12 return value;
1.13 }
1.14
1.15 - public IT87XX(Chip chip, ushort address) {
1.16 + public IT87XX(Chip chip, ushort address, byte version) {
1.17
1.18 this.address = address;
1.19 this.chip = chip;
1.20 + this.version = version;
1.21 this.addressReg = (ushort)(address + ADDRESS_REGISTER_OFFSET);
1.22 this.dataReg = (ushort)(address + DATA_REGISTER_OFFSET);
1.23
1.24 @@ -113,6 +115,7 @@
1.25 r.AppendLine("LPC " + this.GetType().Name);
1.26 r.AppendLine();
1.27 r.Append("Chip ID: 0x"); r.AppendLine(chip.ToString("X"));
1.28 + r.Append("Chip Version: 0x"); r.AppendLine(version.ToString("X"));
1.29 r.Append("Base Address: 0x"); r.AppendLine(address.ToString("X4"));
1.30 r.AppendLine();
1.31 r.AppendLine("Environment Controller Registers");