uint32_t virtBase = ui->memoryViewAddress->text().toUInt(nullptr, 16) & ~0xFF;
uint32_t physBase = emu->virtToPhys(virtBase);
bool ok = (physBase != 0xFFFFFFFF) && emu->isPhysAddressValid(physBase);
+ if (ok && (virtBase != physBase))
+ ui->physicalAddressLabel->setText(QStringLiteral("Physical: %1").arg(physBase, 8, 16, QLatin1Char('0')));
uint8_t block[0x100];
if (ok) {
</property>
</widget>
</item>
+ <item row="3" column="5">
+ <spacer name="verticalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Vertical</enum>
+ </property>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>20</width>
+ <height>40</height>
+ </size>
+ </property>
+ </spacer>
+ </item>
<item row="1" column="5">
<widget class="QToolButton" name="memorySub4">
<property name="text">
</property>
</widget>
</item>
+ <item row="4" column="0" colspan="13">
+ <widget class="QLabel" name="memoryViewLabel">
+ <property name="font">
+ <font>
+ <family>Courier New</family>
+ </font>
+ </property>
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
<item row="2" column="4">
<widget class="QToolButton" name="memoryAdd1">
<property name="text">
</property>
</widget>
</item>
+ <item row="0" column="10">
+ <widget class="QLabel" name="physicalAddressLabel">
+ <property name="text">
+ <string>Physical: XXXXXXXX</string>
+ </property>
+ </widget>
+ </item>
<item row="2" column="7">
<widget class="QToolButton" name="memoryAdd100">
<property name="text">
</property>
</widget>
</item>
- <item row="0" column="9">
- <spacer name="horizontalSpacer_2">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>40</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- </item>
- <item row="3" column="5">
- <spacer name="verticalSpacer_2">
- <property name="orientation">
- <enum>Qt::Vertical</enum>
- </property>
- <property name="sizeHint" stdset="0">
- <size>
- <width>20</width>
- <height>40</height>
- </size>
- </property>
- </spacer>
- </item>
- <item row="0" column="10" rowspan="3">
+ <item row="0" column="12" rowspan="3">
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>Write</string>
</layout>
</widget>
</item>
- <item row="4" column="0" colspan="11">
- <widget class="QLabel" name="memoryViewLabel">
- <property name="font">
- <font>
- <family>Courier New</family>
- </font>
+ <item row="0" column="11">
+ <spacer name="horizontalSpacer_2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
</property>
- <property name="text">
- <string>TextLabel</string>
+ <property name="sizeHint" stdset="0">
+ <size>
+ <width>40</width>
+ <height>20</height>
+ </size>
</property>
- </widget>
+ </spacer>
</item>
</layout>
</widget>