@@ -119,39 +119,39 @@ void MemoryViewTable::DrawTable(QPainter& painter, const QPalette& palette, s32
119119 {
120120 case MemoryViewType::BYTE:
121121 {
122- const u8 val = static_cast < u8 >( cpu.read8 (thisSegmentsStart, valid) );
122+ const u8 val = cpu.Read8 (thisSegmentsStart, & valid);
123123 if (penDefault && val == 0 )
124124 painter.setPen (QColor::fromRgb (145 , 145 , 155 )); // ZERO BYTE COLOUR
125125 painter.drawText (valX, y + (rowHeight * i), valid ? FilledQStringFromValue (val, 16 ) : " ??" );
126126 break ;
127127 }
128128 case MemoryViewType::BYTEHW:
129129 {
130- const u16 val = convertEndian<u16 >(static_cast < u16 >( cpu.read16 (thisSegmentsStart, valid) ));
130+ const u16 val = convertEndian<u16 >(cpu.Read16 (thisSegmentsStart, & valid));
131131 if (penDefault && val == 0 )
132132 painter.setPen (QColor::fromRgb (145 , 145 , 155 )); // ZERO BYTE COLOUR
133133 painter.drawText (valX, y + (rowHeight * i), valid ? FilledQStringFromValue (val, 16 ) : " ????" );
134134 break ;
135135 }
136136 case MemoryViewType::WORD:
137137 {
138- const u32 val = convertEndian<u32 >(cpu.read32 (thisSegmentsStart, valid));
138+ const u32 val = convertEndian<u32 >(cpu.Read32 (thisSegmentsStart, & valid));
139139 if (penDefault && val == 0 )
140140 painter.setPen (QColor::fromRgb (145 , 145 , 155 )); // ZERO BYTE COLOUR
141141 painter.drawText (valX, y + (rowHeight * i), valid ? FilledQStringFromValue (val, 16 ) : " ????????" );
142142 break ;
143143 }
144144 case MemoryViewType::DWORD:
145145 {
146- const u64 val = convertEndian<u64 >(cpu.read64 (thisSegmentsStart, valid));
146+ const u64 val = convertEndian<u64 >(cpu.Read64 (thisSegmentsStart, & valid));
147147 if (penDefault && val == 0 )
148148 painter.setPen (QColor::fromRgb (145 , 145 , 155 )); // ZERO BYTE COLOUR
149149 painter.drawText (valX, y + (rowHeight * i), valid ? FilledQStringFromValue (val, 16 ) : " ????????????????" );
150150 break ;
151151 }
152152 case MemoryViewType::FLOAT:
153153 {
154- const u32 intVal = convertEndian<u32 >(cpu.read32 (thisSegmentsStart, valid));
154+ const u32 intVal = convertEndian<u32 >(cpu.Read32 (thisSegmentsStart, & valid));
155155 float val = 0.0 ;
156156 std::memcpy (&val, &intVal, sizeof (val));
157157 if (penDefault && val == 0.0 )
@@ -177,7 +177,7 @@ void MemoryViewTable::DrawTable(QPainter& painter, const QPalette& palette, s32
177177 painter.setPen (palette.text ().color ());
178178
179179 bool valid;
180- const u8 value = cpu.read8 (currentRowAddress + j, valid);
180+ const u8 value = cpu.Read8 (currentRowAddress + j, & valid);
181181 if (valid)
182182 {
183183 QChar curChar = QChar::fromLatin1 (value);
@@ -258,19 +258,19 @@ u128 MemoryViewTable::GetSelectedSegment(DebugInterface& cpu)
258258 switch (displayType)
259259 {
260260 case MemoryViewType::BYTE:
261- val.lo = cpu.read8 (selectedAddress);
261+ val.lo = cpu.Read8 (selectedAddress);
262262 break ;
263263 case MemoryViewType::BYTEHW:
264- val.lo = convertEndian (static_cast <u16 >(cpu.read16 (selectedAddress & ~1 )));
264+ val.lo = convertEndian (static_cast <u16 >(cpu.Read16 (selectedAddress & ~1 )));
265265 break ;
266266 case MemoryViewType::WORD:
267- val.lo = convertEndian (cpu.read32 (selectedAddress & ~3 ));
267+ val.lo = convertEndian (cpu.Read32 (selectedAddress & ~3 ));
268268 break ;
269269 case MemoryViewType::DWORD:
270- val._u64 [0 ] = convertEndian (cpu.read64 (selectedAddress & ~7 ));
270+ val._u64 [0 ] = convertEndian (cpu.Read64 (selectedAddress & ~7 ));
271271 break ;
272272 case MemoryViewType::FLOAT:
273- val.lo = convertEndian (cpu.read32 (selectedAddress & ~3 ));
273+ val.lo = convertEndian (cpu.Read32 (selectedAddress & ~3 ));
274274 break ;
275275 }
276276 return val;
@@ -279,13 +279,13 @@ u128 MemoryViewTable::GetSelectedSegment(DebugInterface& cpu)
279279void MemoryViewTable::InsertIntoSelectedHexView (u8 value, DebugInterface& cpu)
280280{
281281 const u8 mask = selectedNibbleHI ? 0x0f : 0xf0 ;
282- u8 curVal = cpu.read8 (selectedAddress) & mask;
282+ u8 curVal = cpu.Read8 (selectedAddress) & mask;
283283 u8 newVal = value << (selectedNibbleHI ? 4 : 0 );
284284 curVal |= newVal;
285285
286286 const QPointer<MemoryViewTable> table (this );
287287 Host::RunOnCPUThread ([table, address = selectedAddress, &cpu, val = curVal] {
288- cpu.write8 (address, val);
288+ cpu.Write8 (address, val);
289289
290290 QtHost::RunOnUIThread ([table] {
291291 if (!table)
@@ -323,7 +323,7 @@ bool MemoryViewTable::InsertFloatIntoSelectedHexView(DebugInterface& cpu)
323323
324324 const QPointer<MemoryViewTable> table (this );
325325 Host::RunOnCPUThread ([table, address = selectedAddress, &cpu, val = newIntVal] {
326- cpu.write32 (address, val);
326+ cpu.Write32 (address, val);
327327
328328 QtHost::RunOnUIThread ([table] {
329329 if (!table)
@@ -360,7 +360,7 @@ void MemoryViewTable::InsertAtCurrentSelection(const QString& text, DebugInterfa
360360
361361 const QPointer<MemoryViewTable> table (this );
362362 Host::RunOnCPUThread ([table, address = selectedAddress, &cpu, val = newIntVal] {
363- cpu.write32 (address, val);
363+ cpu.Write32 (address, val);
364364
365365 QtHost::RunOnUIThread ([table] {
366366 if (!table)
@@ -384,7 +384,7 @@ void MemoryViewTable::InsertAtCurrentSelection(const QString& text, DebugInterfa
384384 u32 currAddr = address;
385385 for (int i = 0 ; i < input.size (); i++)
386386 {
387- cpu.write8 (currAddr, input[i]);
387+ cpu.Write8 (currAddr, input[i]);
388388 currAddr = nextAddress (currAddr, address, display_type, little_endian);
389389 }
390390
@@ -552,7 +552,7 @@ bool MemoryViewTable::KeyPress(int key, QChar keychar, DebugInterface& cpu)
552552 {
553553 const QPointer<MemoryViewTable> table (this );
554554 Host::RunOnCPUThread ([table, address = selectedAddress, &cpu, val = keychar.toLatin1 ()] {
555- cpu.write8 (address, val);
555+ cpu.Write8 (address, val);
556556
557557 QtHost::RunOnUIThread ([table, address]() {
558558 if (!table)
@@ -572,7 +572,7 @@ bool MemoryViewTable::KeyPress(int key, QChar keychar, DebugInterface& cpu)
572572 {
573573 const QPointer<MemoryViewTable> table (this );
574574 Host::RunOnCPUThread ([table, address = selectedAddress, &cpu] {
575- cpu.write8 (address, 0 );
575+ cpu.Write8 (address, 0 );
576576
577577 QtHost::RunOnUIThread ([table] {
578578 if (!table)
@@ -865,7 +865,7 @@ void MemoryView::openContextMenu(QPoint pos)
865865
866866void MemoryView::contextCopyByte ()
867867{
868- QApplication::clipboard ()->setText (QString::number (cpu ().read8 (m_table.selectedAddress ), 16 ).toUpper ());
868+ QApplication::clipboard ()->setText (QString::number (cpu ().Read8 (m_table.selectedAddress ), 16 ).toUpper ());
869869}
870870
871871void MemoryView::contextCopySegment ()
@@ -885,7 +885,7 @@ void MemoryView::contextCopySegment()
885885
886886void MemoryView::contextCopyCharacter ()
887887{
888- QApplication::clipboard ()->setText (QChar::fromLatin1 (cpu ().read8 (m_table.selectedAddress )).toUpper ());
888+ QApplication::clipboard ()->setText (QChar::fromLatin1 (cpu ().Read8 (m_table.selectedAddress )).toUpper ());
889889}
890890
891891void MemoryView::contextPaste ()
@@ -913,7 +913,7 @@ void MemoryView::contextGoToAddress()
913913void MemoryView::contextFollowAddress ()
914914{
915915 bool valid;
916- u32 address = cpu ().read32 (m_table.selectedAddress & ~3 , valid);
916+ u32 address = cpu ().Read32 (m_table.selectedAddress & ~3 , & valid);
917917 if (!valid)
918918 return ;
919919
0 commit comments