RamWatch - implement 2 byte (big & little endian) value display
This commit is contained in:
parent
e25ee9324b
commit
271c55c854
|
@ -38,7 +38,29 @@ namespace BizHawk.MultiClient
|
||||||
for (int x = 0; x < watchList.Count; x++)
|
for (int x = 0; x < watchList.Count; x++)
|
||||||
{
|
{
|
||||||
if (watchList[x].type == atype.SEPARATOR) continue;
|
if (watchList[x].type == atype.SEPARATOR) continue;
|
||||||
|
switch (watchList[x].type)
|
||||||
|
{
|
||||||
|
case atype.BYTE:
|
||||||
watchList[x].value = Global.Emulator.MainMemory.PeekByte(watchList[x].address);
|
watchList[x].value = Global.Emulator.MainMemory.PeekByte(watchList[x].address);
|
||||||
|
break;
|
||||||
|
case atype.WORD:
|
||||||
|
{
|
||||||
|
if (watchList[x].bigendian)
|
||||||
|
{
|
||||||
|
watchList[x].value = ((Global.Emulator.MainMemory.PeekByte(watchList[x].address)*256) +
|
||||||
|
Global.Emulator.MainMemory.PeekByte((watchList[x+1].address)+1) );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
watchList[x].value = (Global.Emulator.MainMemory.PeekByte(watchList[x].address) +
|
||||||
|
(Global.Emulator.MainMemory.PeekByte((watchList[x].address)+1)*256) );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case atype.DWORD:
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
switch (watchList[x].signed)
|
switch (watchList[x].signed)
|
||||||
{
|
{
|
||||||
case asigned.HEX:
|
case asigned.HEX:
|
||||||
|
@ -494,7 +516,7 @@ namespace BizHawk.MultiClient
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ListViewItem item = new ListViewItem(String.Format("{0:X4}", watchList[x].address));
|
ListViewItem item = new ListViewItem(String.Format("{0:X}", watchList[x].address));
|
||||||
|
|
||||||
if (watchList[x].signed == asigned.HEX)
|
if (watchList[x].signed == asigned.HEX)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue