423 |
|
|
424 |
SearchDataTypes ValueType = tmp_result.ValueType; |
SearchDataTypes ValueType = tmp_result.ValueType; |
425 |
|
|
426 |
ResultDataType result = new ResultDataType(Convert.ToUInt32(Address, 16), Convert.ToBoolean(Frozen), Value, ValueType); |
ResultDataType result = new ResultDataType(Convert.ToInt32(Address, 16), Convert.ToBoolean(Frozen), Value, ValueType); |
427 |
result.IsFrozen = true; |
result.IsFrozen = true; |
428 |
this.Items[index].Tag = result; |
this.Items[index].Tag = result; |
429 |
ResultItem temp = (ResultItem)this.Items[index]; |
ResultItem temp = (ResultItem)this.Items[index]; |
486 |
GenericMemoryProvider provider = new GenericMemoryProvider((IAcceptsProcessAndConfig)this); |
GenericMemoryProvider provider = new GenericMemoryProvider((IAcceptsProcessAndConfig)this); |
487 |
provider.OpenProvider(); |
provider.OpenProvider(); |
488 |
ResultDataType result = (ResultDataType)iter.Tag; |
ResultDataType result = (ResultDataType)iter.Tag; |
489 |
uint Address = result.Address; |
int Address = result.Address; |
490 |
byte[] bitData = new byte[] { }; |
byte[] bitData = new byte[] { }; |
491 |
switch (result.ValueType) |
switch (result.ValueType) |
492 |
{ |
{ |
654 |
switch (bit_size) |
switch (bit_size) |
655 |
{ |
{ |
656 |
case SearchDataTypes._8bits: |
case SearchDataTypes._8bits: |
657 |
if (unsigned) { resulttype = new ResultDataType(Convert.ToUInt32(address, 16), _frozen, Convert.ToByte(value, 16)); } |
if (unsigned) { resulttype = new ResultDataType(Convert.ToInt32(address, 16), _frozen, Convert.ToByte(value, 16)); } |
658 |
else { resulttype = new ResultDataType(Convert.ToUInt32(address, 16), _frozen, Convert.ToByte(value, 16)); } |
else { resulttype = new ResultDataType(Convert.ToInt32(address, 16), _frozen, Convert.ToByte(value, 16)); } |
659 |
break; |
break; |
660 |
case SearchDataTypes._16bits: |
case SearchDataTypes._16bits: |
661 |
if (unsigned) { resulttype = new ResultDataType(Convert.ToUInt32(address, 16), _frozen, Convert.ToUInt16(value, 16)); } |
if (unsigned) { resulttype = new ResultDataType(Convert.ToInt32(address, 16), _frozen, Convert.ToUInt16(value, 16)); } |
662 |
else { resulttype = new ResultDataType(Convert.ToUInt32(address, 16), _frozen, Convert.ToInt16(value, 16)); } |
else { resulttype = new ResultDataType(Convert.ToInt32(address, 16), _frozen, Convert.ToInt16(value, 16)); } |
663 |
break; |
break; |
664 |
case SearchDataTypes._32bits: |
case SearchDataTypes._32bits: |
665 |
if (unsigned) { resulttype = new ResultDataType(Convert.ToUInt32(address, 16), _frozen, Convert.ToUInt32(value, 16)); } |
if (unsigned) { resulttype = new ResultDataType(Convert.ToInt32(address, 16), _frozen, Convert.ToUInt32(value, 16)); } |
666 |
else { resulttype = new ResultDataType(Convert.ToUInt32(address, 16), _frozen, Convert.ToInt32(value, 16)); } |
else { resulttype = new ResultDataType(Convert.ToInt32(address, 16), _frozen, Convert.ToInt32(value, 16)); } |
667 |
break; |
break; |
668 |
case SearchDataTypes._64bits: |
case SearchDataTypes._64bits: |
669 |
if (unsigned) { resulttype = new ResultDataType(Convert.ToUInt32(address, 16), _frozen, Convert.ToUInt64(value, 16)); } |
if (unsigned) { resulttype = new ResultDataType(Convert.ToInt32(address, 16), _frozen, Convert.ToUInt64(value, 16)); } |
670 |
else { resulttype = new ResultDataType(Convert.ToUInt32(address, 16), _frozen, Convert.ToInt64(value, 16)); } |
else { resulttype = new ResultDataType(Convert.ToInt32(address, 16), _frozen, Convert.ToInt64(value, 16)); } |
671 |
break; |
break; |
672 |
|
|
673 |
} |
} |
674 |
this.Tag = resulttype; |
this.Tag = resulttype; |
675 |
} |
} |
676 |
public ResultItem(uint address) |
public ResultItem(int address) |
677 |
: base() |
: base() |
678 |
{ |
{ |
679 |
this.initialize(); |
this.initialize(); |
680 |
this.SubItems.Add(string.Format("0x{0:x8}", address)); |
this.SubItems.Add(string.Format("0x{0:x8}", address)); |
681 |
} |
} |
682 |
public ResultItem(uint address, bool frozen) |
public ResultItem(int address, bool frozen) |
683 |
: base() |
: base() |
684 |
{ |
{ |
685 |
this.initialize(frozen); |
this.initialize(frozen); |
686 |
this.SubItems.Add(string.Format("0x{0:x8}", address)); |
this.SubItems.Add(string.Format("0x{0:x8}", address)); |
687 |
} |
} |
688 |
public ResultItem(uint address, bool frozen, byte value) |
public ResultItem(int address, bool frozen, byte value) |
689 |
: base() |
: base() |
690 |
{ |
{ |
691 |
this.initialize(frozen); |
this.initialize(frozen); |
698 |
ResultDataType resulttype = new ResultDataType(address, frozen, value); |
ResultDataType resulttype = new ResultDataType(address, frozen, value); |
699 |
this.Tag = resulttype; |
this.Tag = resulttype; |
700 |
} |
} |
701 |
public ResultItem(uint address, bool frozen, sbyte value) |
public ResultItem(int address, bool frozen, sbyte value) |
702 |
: base() |
: base() |
703 |
{ |
{ |
704 |
this.initialize(frozen); |
this.initialize(frozen); |
711 |
ResultDataType resulttype = new ResultDataType(address, frozen, value); |
ResultDataType resulttype = new ResultDataType(address, frozen, value); |
712 |
this.Tag = resulttype; |
this.Tag = resulttype; |
713 |
} |
} |
714 |
public ResultItem(uint address, bool frozen, ushort value) |
public ResultItem(int address, bool frozen, ushort value) |
715 |
: base() |
: base() |
716 |
{ |
{ |
717 |
this.initialize(frozen); |
this.initialize(frozen); |
724 |
ResultDataType resulttype = new ResultDataType(address, frozen, value); |
ResultDataType resulttype = new ResultDataType(address, frozen, value); |
725 |
this.Tag = resulttype; |
this.Tag = resulttype; |
726 |
} |
} |
727 |
public ResultItem(uint address, bool frozen, short value) |
public ResultItem(int address, bool frozen, short value) |
728 |
: base() |
: base() |
729 |
{ |
{ |
730 |
this.initialize(frozen); |
this.initialize(frozen); |
737 |
ResultDataType resulttype = new ResultDataType(address, frozen, value); |
ResultDataType resulttype = new ResultDataType(address, frozen, value); |
738 |
this.Tag = resulttype; |
this.Tag = resulttype; |
739 |
} |
} |
740 |
public ResultItem(uint address, bool frozen, uint value) |
public ResultItem(int address, bool frozen, uint value) |
741 |
: base() |
: base() |
742 |
{ |
{ |
743 |
this.initialize(frozen); |
this.initialize(frozen); |
750 |
ResultDataType resulttype = new ResultDataType(address, frozen, value); |
ResultDataType resulttype = new ResultDataType(address, frozen, value); |
751 |
this.Tag = resulttype; |
this.Tag = resulttype; |
752 |
} |
} |
753 |
public ResultItem(uint address, bool frozen, int value) |
public ResultItem(int address, bool frozen, int value) |
754 |
: base() |
: base() |
755 |
{ |
{ |
756 |
this.initialize(frozen); |
this.initialize(frozen); |
763 |
ResultDataType resulttype = new ResultDataType(address, frozen, value); |
ResultDataType resulttype = new ResultDataType(address, frozen, value); |
764 |
this.Tag = resulttype; |
this.Tag = resulttype; |
765 |
} |
} |
766 |
public ResultItem(uint address, bool frozen, ulong value) |
public ResultItem(int address, bool frozen, ulong value) |
767 |
: base() |
: base() |
768 |
{ |
{ |
769 |
this.initialize(frozen); |
this.initialize(frozen); |
776 |
ResultDataType resulttype = new ResultDataType(address, frozen, value); |
ResultDataType resulttype = new ResultDataType(address, frozen, value); |
777 |
this.Tag = resulttype; |
this.Tag = resulttype; |
778 |
} |
} |
779 |
public ResultItem(uint address, bool frozen, long value) |
public ResultItem(int address, bool frozen, long value) |
780 |
: base() |
: base() |
781 |
{ |
{ |
782 |
this.initialize(frozen); |
this.initialize(frozen); |